def startCrawler():
""" Initiates process of the web crawler above.
Arguments: None
Return: None
"""
# Starts a Twisted reactors to configure logs and set shutdown handlers
process = CrawlerProcess({
'USER_AGENT': 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)'
})
process.crawl(TwitterSpider)
process.start()
评论列表
文章目录