Ask HN: What are best tools for web scraping?
51–60 of 243 posts
Re: Ask HN: What are best tools for web scraping?
#52For non-coders, import.io is great. However, they used to have a generous free plan that has since went away (you are limited to 500 records now). Still a great product, problem is they don't have a small plan (starts at $299/month and goes up to $9,999).
Re: Ask HN: What are best tools for web scraping?
#53Re: Ask HN: What are best tools for web scraping?
#54Earlier quoted context omitted.
Using this as well with Requests to automate eBay/gumtree/craigslist. Works very well
Any details on this anywhere, or is it not for public consumption? I'm just getting started in Python and want to do something with Gumtree and eBay as an idea to help me in a different sphere.
It's pretty dumb really. Just figured out the search URLs and then parse the list responses. It then stores the auctions/ad IDs it has seen in a tiny redis instance with 60 days' expiry on each ID it inserts. If there are any items it hasn't seen each time it runs, it compiles them in a list and emails them to me via AWS SNS. Runs every 5 minutes from cron on a Raspberry Pi Zero plugged into the back of my XBox 360 as a power supply and my router via a USB/ethernet cable.
The main bulk of the work went into the searches to run which are a huge list of typos on things with a high return. I tend to buy, test, then reship them for profit. Not much investment gives a very good return - pays for the food bill every month :)
Re: Ask HN: What are best tools for web scraping?
#55If you are a programmer, scrapy[0] will be a good bet. It can handle robots.txt, request throttling by ip, request throttling by domain, proxies and all other common nitty-gritties of crawling. The only drawback is handling pure javascript sites. We have to manually dig into the api or add a headless browser invocation within the scrapy handler. Scrapy also has the ability to pause and restart crawls [1], run the cra…
Would you still recommend Scrapy if the task wasn't specifically crawling?
[0] : http://python-rq.org/docs/
[1] : http://gearman.org/
Re: Ask HN: What are best tools for web scraping?
#56If you are a programmer, scrapy[0] will be a good bet. It can handle robots.txt, request throttling by ip, request throttling by domain, proxies and all other common nitty-gritties of crawling. The only drawback is handling pure javascript sites. We have to manually dig into the api or add a headless browser invocation within the scrapy handler. Scrapy also has the ability to pause and restart crawls [1], run the cra…
Would you still recommend Scrapy if the task wasn't specifically crawling?
Re: Ask HN: What are best tools for web scraping?
#57Re: Ask HN: What are best tools for web scraping?
#58If you are a programmer, scrapy[0] will be a good bet. It can handle robots.txt, request throttling by ip, request throttling by domain, proxies and all other common nitty-gritties of crawling. The only drawback is handling pure javascript sites. We have to manually dig into the api or add a headless browser invocation within the scrapy handler. Scrapy also has the ability to pause and restart crawls [1], run the cra…
[0] https://blog.scrapinghub.com/2015/03/02/handling-javascript-...
Re: Ask HN: What are best tools for web scraping?
#59Python requests + lxml, with Selenium as a last resort.
Re: Ask HN: What are best tools for web scraping?
#60Earlier quoted context omitted.
> BeautifulSoup / lxml When should one use one or the other, would you say?
You can use the BeautifulSoup API with the `lxml` parser: https://www.crummy.com/software/BeautifulSoup/bs4/doc/#insta... I've heard that `lxml` can choke on certain badly-formed markup, but it's very fast. Personally has never failed on me.