I created a small Scrapy
project with this structure:
scrapyProject/
├── scrapy.cfg
└── scrapyProject
├── __init__.py
├── items.py
├── pipelines.py
├── settings.py
└── spiders
├── crawl_products.py
└── __init__.py
The crawl_products.py
contain the spider products_spider
. To start the spider I am using:
scrapy crawl products_spider
Now I want to start the spider from another python script and wait until its execution end.
IF IT CAN HELP : The other script from which I want to run the spider is a django
view