Created
February 16, 2022 19:20
-
-
Save FelipeSBarros/fd7566a180c47b795a50ad44634b9c0c to your computer and use it in GitHub Desktop.
This file contains 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
from scrapy.crawler import CrawlerProcess | |
from scrapy.utils.log import configure_logging | |
from scrapy.utils.project import get_project_settings | |
configure_logging({'LOG_FORMAT': '%(levelname)s: %(message)s'}) | |
process = CrawlerProcess(get_project_settings()) | |
process.crawl('instituicoes') | |
process.crawl('agencias_reguladoras') | |
process.start() # the script will block here until the crawling is finished |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment