Live data from Hacker News

Ask HN: What are best tools for web scraping?

news.ycombinator.com

141–150 of 243 posts

Re: Ask HN: What are best tools for web scraping?

#141
post #131

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…

A decade ago I worked for a company that also scraped data at this scale and your advice is spot-on!

Re: Ask HN: What are best tools for web scraping?

#142
post #136
post #133

Earlier 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 :)

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?

#143
post #54

Earlier 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.

Sounds like a good idea. Good luck - you can do it! :)

Re: Ask HN: What are best tools for web scraping?

#145
post #136

Earlier 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?

I've been using it for around 3-4 months with different sites. For linkedin it's been a bit more than 2 months. They are a good startup and they've been improving a lot their services. They only count successful requests so you don't have to worry about fails. If you get a bigger package they will raise your limits I guess. But I suggest that you contact them directly

Re: Ask HN: What are best tools for web scraping?

#146
post #51

If you use PHP, Simple HTML DOM[0] is an awesome and simple scraping library. [0] http://simplehtmldom.sourceforge.net/

Indeed it's very easy to use, I really like it. There is a newer version on Github: https://github.com/sunra/php-simple-html-dom-parser

Re: Ask HN: What are best tools for web scraping?

#147
post #142
post #136

Earlier 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

check what I've just answered to @altareq :)

Re: Ask HN: What are best tools for web scraping?

#148
post #106

I'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,…

I have been using ProxyCrawl since more than 6 months, the API is very good and became more stable for javascript crawling, the best thing about ProxyCrawl is the support, it is like instant. I only recommend, but that depends totally on what you are trying to crawl, you will need to talk to their support to help you if its something tricky.

Re: Ask HN: What are best tools for web scraping?

#149
post #131

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…

> 3. A RDBMS, with databases for both the raw and normalized data

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?

#150
post #102

Always 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…

>Python 3, AFAIK, doesn't have anything as handy as Ruby/Perl's Mechanize.

Did the version of Mechanize written in Py2 stop being supported?

Post reply on HN