chore: fix index error in flags spider
This commit is contained in:
@@ -54,7 +54,7 @@ class FlagsSpider(scrapy.Spider):
|
|||||||
"//table[contains(@class, 'infobox')]/tbody/tr/td/div/a[not(contains(@href, 'cite_note'))]/@href"
|
"//table[contains(@class, 'infobox')]/tbody/tr/td/div/a[not(contains(@href, 'cite_note'))]/@href"
|
||||||
).getall()
|
).getall()
|
||||||
flag_image_url = flag_image_data[0]
|
flag_image_url = flag_image_data[0]
|
||||||
flag_description_url = flag_description_data[1]
|
flag_description_url = flag_description_data[0]
|
||||||
|
|
||||||
yield scrapy.Request(
|
yield scrapy.Request(
|
||||||
url=f"https://en.wikipedia.org{flag_description_url}",
|
url=f"https://en.wikipedia.org{flag_description_url}",
|
||||||
|
|||||||
Reference in New Issue
Block a user