Como passar um argumento definido pelo usuário no Scrapy Spider
class VisualScrapySpider(scrapy.Spider):
name = 'visualscrapy'
def __init__(self, category='', **kwargs):
self.start_urls = [f'http://www.visualscrapy.com/search?query={category}']
super().__init__(**kwargs)
#scrapy crawl visualscrapy -a category=<search_parameter>
visualscrapper