No post body was provided.
Ask HN: How you scrape websites?
1–10 of 17 posts
Re: Ask HN: How you scrape websites?
#2Scrapy
Re: Ask HN: How you scrape websites?
#3So many ways to do this. What are you trying to scrape? If its light weight, you could use a Chrome plugin called Data Miner. Right now I am using Beautiful Soup for most of my scrapping and love it. Python is incredibly easy to learn and powerful.
Re: Ask HN: How you scrape websites?
#4If you like JavaScript you may give Nightmare.js a try. It's so simple yet so powerful. I've used it quite a lot and never had a complaint.
Re: Ask HN: How you scrape websites?
#5Celery with gevent/process.
Re: Ask HN: How you scrape websites?
#6wget -mrnp https://www.example.com
Re: Ask HN: How you scrape websites?
#7Greasemonkey[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?
#8I've used Phatom.js before. It really depends on the site. Some sites need full browsers running which you could use selenium.
Re: Ask HN: How you scrape websites?
#9Depending on how complicated the site its either
Selenium with Chrome running in a virtual display.
Python requests with Beautifulsoup
Re: Ask HN: How you scrape websites?
#1099% 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)