Ask YC: What do you scrape? How do you scrape?
41–47 of 47 posts
Re: Ask YC: What do you scrape? How do you scrape?
#42Do any of you who scrape fear retaliation from the sites you scrape? Maybe you are violating a ToS or scraping copyrighted text, and they cut off your IP. Thoughts?
Re: Ask YC: What do you scrape? How do you scrape?
#43Scraping EU public procurement contracts from the "Tenders Europa Daily" database ( http://ted.europa.eu/ ). There's more than a million documents with each document requiring up to two requests. Been at it for several weeks with a multithreaded scraper and we're almost through. Using Solvent (simile.mit.edu/solvent/) to generate xpath expressions and HtmlAgilityPack (www.codeplex.com/htmlagilitypack) to run the xpat…
Be careful here. The content is actually copyrighted. Whilst you can scrape it their T&Cs expressly forbid it. They sell licenses to access this information - the license is NOT expensive and they provide direct access to all the data in XML.
Quote: "Reproduction is authorised provided the source is acknowledged. However, to prevent disruptions in service to our normal users from bulk downloads of TED data, we reserve the right to check for, and block, attempts to download excessive quantities of documents, particularly using automated or robot-like tools."
... they apparently chose not to exercise that right in this case, the scrape completed last night (all 18 GB of it).
Re: Ask YC: What do you scrape? How do you scrape?
#44Re: Ask YC: What do you scrape? How do you scrape?
#45I use Mechanize, both in its Ruby and Python forms (I prefer Ruby) and plain old regular expressions to get the information that I want. Often times I will use a divide and conquer strategy by removing part of the web page (for example, the ) and successively paring it down to what I really want.
Javascript can be a problem. What I normally do is actually read the Javascript on the page, and then recreate that behavior in my Ruby code. Often times this means simply setting some form values (usually hidden) and then submitting the form.