Debian 6 comes with Scrapy 0.8 as downloadable packages on apt. Here a quick howto to get this spider works on Debian 6.
- sudo apt-get install python-scrapy
- mkdir mydir
- cd mydir
- scrapy-ctl startproject anime
- export SCRAPY_SETTINGS_MODULE=anime.settings
- export PYTHONPATH=/home/YOURHOMEHERE/mydir
If you’ve already a bot but you, to run your spider thanks to point 6 and 7 you can simply type:
scrapy-ctl crawl example.com
Otherwise, now you can follow the howto on tutorial section of Scrapy 0.8 or this awesome howto by Pravin Paratey to write your own bot, but remember to use the scrapy-ctl command instead of the .py version and to add all your spiders to SCRAPY_SETTINGS_MODULE and PYTHONPATH.
To list your available (and correctly configured) spider, just type:
If a bot doesn’t appear here, you have an issue on point 6 or 7 or you have a misconfigured spider, i.e. I was forgetting the SPIDER part on bottom of my spider and I was using domain instead of domain_name on my script, see Pravin’s howto to write correct Scrapy 8.0 code.