Renaming the main function as run_scrapy
This commit is contained in:
parent
a7952bc32c
commit
ad60e83693
@ -173,11 +173,10 @@ class TvShow(CrawlSpider):
|
||||
return datetime.strptime(formatted_date, "Posted on %B %d, %Y at %H:%M in")
|
||||
|
||||
|
||||
def main():
|
||||
def run_scrapy():
|
||||
process = CrawlerProcess()
|
||||
_ = process.crawl(TvShow)
|
||||
process.start()
|
||||
return 0
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user