Untitled

 avatar
unknown
plain_text
23 days ago
376 B
3
Indexable
from app import QuotesToScrapeSpider, CrawlerProcess

resposta = input('Devo iniciar a automação? (s/n)')

if resposta == 's':
    bot = CrawlerProcess(
    settings={
        "FEEDS": {
            "livros.json": {"format":"csv"}
        }
    }
    )

    bot.crawl(QuotesToScrapeSpider)
    bot.start()
else:
    print('Não será iniciado a automação')
Leave a Comment