scrapy run spider from script
It is simple and straightforward š Just check the official documentation. I would make there a little change so you could control the spider to run only when you do python myscript.py and not every time you just import from it. Just add an if __name__ == “__main__”: Now save the file as myscript.py and run ‘python myscript.py`. Enjoy!