What I need is an API scraper, scrapy seems to be mostly for HTML. I know how to look at network requests in Chrome dev tools and JS function to understand the shape of REST API, so I need something to plan the exploration of the arguments space. For example if you want to scrap airbnb, you look at their API, find there is a REST call with a lat, long box, I need something to automatically explore an area, if the api…
Scrapy Tips from the Pros
31–40 of 78 posts
Re: Scrapy Tips from the Pros
#32Man, I feel old. Does anyone remember learning web scraping from one section of Fravia's site? Ever try to move forward from that to write a fully fledged search engine? These memories are from 15 years ago... quite amusing how much hasn't changed. In hindsight it was probably easier back then due to the lack of JS-reliant pages, less awareness of automation and less scraper detection algorithms.
https://github.com/melling/SwiftResources/blob/master/swift_...
I'm using Swift to preprocess the data and I host my server on AppEngine using Go:
http://www.h4labs.com/dev/ios/swift.html
Since my engine is stitched together, I could use Python or Perl to scrape the sites and extract the words, ignoring JavaScript and css.
Re: Scrapy Tips from the Pros
#33I love ScrapingHub (and use them) but these tips go completely against my own experience. Whenever I've tried to extract data like that inside Spiders I would invariably (and 50,000 URLs later) come to the realization that my .parse() ing code did not cover some weird edge case on the scraped resource and that all data extracted was now basically untrustworthy and worthless. How to re-run all that with more robust lo…
Btw, nice to hear your own experience here. :)
Re: Scrapy Tips from the Pros
#34I love ScrapingHub (and use them) but these tips go completely against my own experience. Whenever I've tried to extract data like that inside Spiders I would invariably (and 50,000 URLs later) come to the realization that my .parse() ing code did not cover some weird edge case on the scraped resource and that all data extracted was now basically untrustworthy and worthless. How to re-run all that with more robust lo…
[1]: http://crawlera.com
Re: Scrapy Tips from the Pros
#35I love ScrapingHub (and use them) but these tips go completely against my own experience. Whenever I've tried to extract data like that inside Spiders I would invariably (and 50,000 URLs later) come to the realization that my .parse() ing code did not cover some weird edge case on the scraped resource and that all data extracted was now basically untrustworthy and worthless. How to re-run all that with more robust lo…
What do you mean by "data like that"? Metadata in Microdata format? Btw, nice to hear your own experience here. :)
Thanks for the blogpost! I actually did not know about any of the 3 libraries and am gonna start using them.
Re: Scrapy Tips from the Pros
#36Great to see Scrapy getting some love. It's really well done and it scales well (used it to scape ~2m job posts from ATS & government job banks in 2-3 hours).
Re: Scrapy Tips from the Pros
#37Re: Scrapy Tips from the Pros
#38Quick question. Could you use Scrapy to specific individual pages from thousands (or millions) of sites, or would you be better off using a search engine crawler like Nutch for this? I want to crawl the first page of a number of specific sites and was looking into the technologies for this.
Re: Scrapy Tips from the Pros
#39That reminds me, I was going to write a scraper to extract my HN comments.
Re: Scrapy Tips from the Pros
#40Quick question. Could you use Scrapy to specific individual pages from thousands (or millions) of sites, or would you be better off using a search engine crawler like Nutch for this? I want to crawl the first page of a number of specific sites and was looking into the technologies for this.