Created
July 15, 2019 05:46
-
-
Save killertilapia/c959a072cbf342cbb3cb1924406e275a to your computer and use it in GitHub Desktop.
To help debug scrapy scrapers in vscode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# runner.py | |
# to help debug scrapy scrapers in vscode | |
from scrapy.cmdline import execute | |
execute(['scrapy', 'crawl', 'radiall_spider', '-o', 'test.json']) | |
# same thing just with extra params | |
from scrapy.cmdline import execute | |
execute(['scrapy', 'crawl', 'coilcraft', '-o', 'test.json', '-a', 'filepath_urls=parts_urls.json']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment