Ozzy's Scrapy scaffold.
- Python 3.6+ (pypy3.6+)
- Scrapy 2.0+
pip install os-scrapy
The command is same as scrapy
os-scrapy -h
os-scrapy support config CRAWLER_CLASS
replace the default scrapy.crawler.Crawler
It can be configured in settings.py
file or command line
os-scrapy crawl -c <your_crawler_class> <spider_name>
Thanks to os-scrapy-cookiecutter, -p
option can be used to create project as well as python package
os-scrapy startproject -p <project_name> [project_dir]
-r
option can be used to set TWISTED_REACTOR
os-scrapy crawl -r asyncio <spider_name>
tox
MIT licensed.