Adding type annotation to TvShow
This commit is contained in:
parent
15877e456a
commit
3f6d1bfb4f
@ -19,15 +19,15 @@ class TvShowItem(scrapy.Item):
|
||||
|
||||
|
||||
class TvShow(CrawlSpider):
|
||||
name = "rlsb_tvshow"
|
||||
allowed_domains = ["rlsbb.ru"]
|
||||
start_urls = ["https://rlsbb.ru/category/tv-shows/"]
|
||||
name: str = "rlsb_tvshow"
|
||||
allowed_domains: list[str] = ["rlsbb.ru"]
|
||||
start_urls: list[str] = ["https://rlsbb.ru/category/tv-shows/"]
|
||||
custom_settings = {
|
||||
'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,
|
||||
}
|
||||
rules = [
|
||||
rules: list[Rule] = [
|
||||
Rule(LinkExtractor(allow=r"/tv-shows/page/"), callback="parse", follow=True)
|
||||
]
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user