I've done this professionally in an infrastructure processing several terabytes per day. A robust, scalable scraping system comprises several distinct parts: 1. A crawler, for retrieving resources over HTTP, HTTPS and sometimes other protocols a bit higher or lower on the network stack. This handles data ingestion. It will need to be sophisticated these days - sometimes you'll need to emulate a browser environment, s…
Ask HN: What are best tools for web scraping?
141–150 of 243 posts
Re: Ask HN: What are best tools for web scraping?
#142Earlier quoted context omitted.
thanks, I just talked to their support and got onboard very quickly, seems to work good for LinkedIn but only if support activates the token for you.
yes I also had to contact them in the past to activate linkedin scraping. Now it's perfect without blocks :)
Re: Ask HN: What are best tools for web scraping?
#143Earlier quoted context omitted.
It's not really for public consumption because it's embarrassingly badly written :) 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 eve…
Thanks for the info - I'm sure mine will be of lower quality when I do write it - hoping to compile real-world info on sold vehicles by scraping info from eBay and Gumtree, but that will take time and more skills than I currently possess. Good to hear someone's made something out of a similar idea, though.
Re: Ask HN: What are best tools for web scraping?
#144Re: Ask HN: What are best tools for web scraping?
#145Earlier quoted context omitted.
yes I also had to contact them in the past to activate linkedin scraping. Now it's perfect without blocks :)
how long have you been using ProxyCrawl? I have rate limit to linkedIn and I want to buy a bigger package, do you recommend?
Re: Ask HN: What are best tools for web scraping?
#146If you use PHP, Simple HTML DOM[0] is an awesome and simple scraping library. [0] http://simplehtmldom.sourceforge.net/
Re: Ask HN: What are best tools for web scraping?
#147Earlier quoted context omitted.
yes I also had to contact them in the past to activate linkedin scraping. Now it's perfect without blocks :)
support says, the rate limit for LinkedIn can be increased on bigger packages, Do you recommend buying a bigger package? Thanks
Re: Ask HN: What are best tools for web scraping?
#148I've been doing scraping for many years and at the end it's always the same, you build a lot of stuff to bypass site restrictions and finally, once you are done, you can start scraping. It all goes fine until the site you are scrapping bans you... So what I do now? - proxycrawl https://proxycrawl.com - node http://nodejs.org With proxycrawl I don't need to worry about bans or blocks and I can crawl sites like amazon,…
Re: Ask HN: What are best tools for web scraping?
#149I've done this professionally in an infrastructure processing several terabytes per day. A robust, scalable scraping system comprises several distinct parts: 1. A crawler, for retrieving resources over HTTP, HTTPS and sometimes other protocols a bit higher or lower on the network stack. This handles data ingestion. It will need to be sophisticated these days - sometimes you'll need to emulate a browser environment, s…
I've found the filesystem (local or network, depending on scale) works well for the raw data. A normalized file name with a timestamp and job identifier in a hashed directory structure of some sort (I generally use $jobtype/%Y-%m-%d/%H/ as a start) works well, and reading and writing gzip is trivial (and often you can just output the raw content of gzip encoded payloads). The filesystem is an often overlooked database. If you end up needing more transactional support, or to easily identify what's been processed or not, look at how Maildir works.
After normalization, the database is ideal though.
That said, I was doing a few gigabytes a day, not a dew terabytes, so you might have run into some scale issues I didn't. I was able to keep it to mostly one box for crawling and parsing, but crawlers ended up being complex and job-queue driven enough that expanding to multiple systems wouldn't have been all that much extra work (an assessment I feel confident in, having done similar things before).
Re: Ask HN: What are best tools for web scraping?
#150Always fascinated by how diverse the discussion and answers is for HN threads on web-scraping. Goes to show that "web-scraping" has a ton of connotations, everything from automated-fetching of URLs via wget or cURL, to data management via something like scrapy. Scrapy is a whole framework that may be worthwhile, but if I were just starting out for a specific task, I would use: - requests http://docs.python-requests.o…
Did the version of Mechanize written in Py2 stop being supported?