chore: disable dev filter for downloads

This commit is contained in:
2022-06-23 02:30:46 +01:00
parent 96c99fdb1f
commit a59d34d180

View File

@@ -23,8 +23,8 @@ class CountrydownloaderSpider(scrapy.Spider):
"//table[contains(@class, 'sortable') and contains(@class, 'wikitable')]/tbody/tr[not(contains(@style, 'background'))]/td[1 and contains(@style, 'vertical-align:top;')]/b/a/@href"
).getall()
# for url in country_urls_xpath:
for url in country_urls_xpath[:3]:
for url in country_urls_xpath:
# for url in country_urls_xpath[:3]:
regex_match = re.search(r"\/wiki\/(?P<short_country_name>[^$]*)", url)
yield scrapy.Request(
url=f"https://en.wikipedia.org{url}",