from scrapy.crawler import CrawlerProcess
from scrapy.settings import Settings
from leroy.spiders.leroym import LeroymSpider
from leroy import settings
if __name__ == '__main__':
    crawler_settings = Settings()
    crawler_settings.setmodule(settings)
    search_cat = input('Что вы ищите? ')
    process = CrawlerProcess(settings=crawler_settings)
    process.crawl(LeroymSpider, search=search_cat)
    process.start()

2e8afe6a0b99baf2a4dc6717c545b62052f6df85
<mask token>

<mask token>
if __name__ == '__main__':
    crawler_settings = Settings()
    crawler_settings.setmodule(settings)
    search_cat = input('Что вы ищите? ')
    process = CrawlerProcess(settings=crawler_settings)
    process.crawl(LeroymSpider, search=search_cat)
    process.start()

from scrapy.crawler import CrawlerProcess
from scrapy.settings import Settings
from leroy.spiders.leroym import LeroymSpider
from leroy import settings
if __name__ == '__main__':
    crawler_settings = Settings()
    crawler_settings.setmodule(settings)
    search_cat = input('Что вы ищите? ')
    process = CrawlerProcess(settings=crawler_settings)
    process.crawl(LeroymSpider, search=search_cat)
    process.start()
