craigslist_scraper | A gem to scrape and analyze craigslist data | Scraper library
kandi X-RAY | craigslist_scraper Summary
kandi X-RAY | craigslist_scraper Summary
A gem to scrape and analyze craigslist data
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of craigslist_scraper
craigslist_scraper Key Features
craigslist_scraper Examples and Code Snippets
Community Discussions
Trending Discussions on craigslist_scraper
QUESTION
The CrawlSpider I've created is not doing it's job properly. It parses the first page and then stops without going on to the next page. Something I'm doing wrong but can't detect. Hope somebody out there gives me a hint what should I do to rectify it.
"items.py" includes:
...ANSWER
Answered 2017-Apr-04 at 14:43Don't name your callback method parse
when you use scrapy.CrawlSpider.
From Scrapy documentation:
When writing crawl spider rules, avoid using parse as callback, since the CrawlSpider uses the parse method itself to implement its logic. So if you override the parse method, the crawl spider will no longer work.
Also, you don't need to append an item to list since you already using Scrapy Items and can simply yield item. This code should work:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install craigslist_scraper
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page