Adding the SQLAlchemyPipeline to the spider pipelines
This commit is contained in:
parent
0db07013ce
commit
8adc0623bd
@ -119,6 +119,9 @@ class TvShow(CrawlSpider):
|
||||
'USER_AGENT': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36',
|
||||
'AUTOTHROTTLE_ENABLED': True,
|
||||
'DOWNLOAD_DELAY': 10,
|
||||
'ITEM_PIPELINES': {
|
||||
'__main__.SQLAlchemyPipeline': 300,
|
||||
},
|
||||
}
|
||||
rules: list[Rule] = [
|
||||
Rule(LinkExtractor(allow=r"/tv-shows/page/"), callback="parse", follow=True)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user