Live data from Hacker News

Ask HN: How you scrape websites?

news.ycombinator.com

1–10 of 17 posts

Re: Ask HN: How you scrape websites?

#7
Greasemonkey[0] is fairly handy for scraping. You can even include remote resources like jQuery if you're targeting specific DOM elements in the page. For storing the data, you can just use LocalStorage (for example if you're paginating)

[0] https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/

Re: Ask HN: How you scrape websites?

#10
99% of the time I can easily thow together a simple Python script with the BeautifulSoup and requests libraries to do any kind of basic scraping, form text to images or to API endpoints. And most of the time if I need a to store the data nicely I can either use the built-in csv or json modules or use SQLite database as a single file (which I believe is also part of the standard library)
Post reply on HN