Node npm for web scraping purposes. It scrapes a given URL, and returns you its title, meta description, meta keywords, an array with all the links, all the images in it, etc. Inspired by the metainspector Ruby gem
MIT License
129
stars
52
forks
source link
added limit option in order to prevent downloading tons of data #5
node-metainspector can explode if is provided an url that links to big file such an ISO file.
to avoid this problem i have added an option parameter that limits the downloaded data made from the request object.
with my change, the following code:
node-metainspector can explode if is provided an url that links to big file such an ISO file. to avoid this problem i have added an option parameter that limits the downloaded data made from the request object. with my change, the following code:
avoids that the iso is fully downloaded, as the request is aborted after the first 1024 bytes and event "limit" is emmitted.
Let me know what do you think of this and i can write you also the tests. thank you, Miro