laurengarcia / url-metadata

NPM module: Request a url and scrape the metadata from its HTML using Node.js or the browser.
https://www.npmjs.com/package/url-metadata
MIT License
166 stars 43 forks source link

does this package load the whole html file? #47

Closed redouand closed 1 year ago

redouand commented 3 years ago

does this pakcage load the entire html file and THEN extract the meta data from it?, or does it somehow load only the beginning of the html file and then extract the meta from it, because there are some html pages that are so big

laurengarcia commented 1 year ago

The package loads the entire html file and then extracts the data. In the new version 3.0.1 you'll find an option to return the raw html as a string by setting includeResponseBody: true.

https://www.npmjs.com/package/url-metadata