diff --git a/scrarls.py b/scrarls.py index c3b9e7f..61750f6 100644 --- a/scrarls.py +++ b/scrarls.py @@ -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) ]