chore: fix flag description url
This commit is contained in:
@@ -50,8 +50,8 @@ class CountrydownloaderSpider(scrapy.Spider):
|
||||
"//table[contains(@class, 'infobox')]/tbody/tr[2]/td/div/div[1]/div[1]/a/@href"
|
||||
).get()
|
||||
flag_description_url = response.xpath(
|
||||
"//table[contains(@class, 'infobox')]/tbody/tr[2]/td/div/div[1]/div[2]/a/@href"
|
||||
).get()
|
||||
"//table[contains(@class, 'infobox')]/tbody/tr[2]/td/div/div[1]/div/a/@href"
|
||||
).getall()[-1]
|
||||
|
||||
country_item = {
|
||||
**country_item,
|
||||
@@ -100,6 +100,6 @@ class CountrydownloaderSpider(scrapy.Spider):
|
||||
country_scrapy_item["short_country_name"] = country_item["short_country_name"]
|
||||
country_scrapy_item["country_html"] = country_item["country_html"]
|
||||
country_scrapy_item["flag_html"] = country_item["flag_html"]
|
||||
country_scrapy_item["file_urls"] = [country_item["flag_image_url"]]
|
||||
country_scrapy_item["file_urls"] = [flag_image_xpath]
|
||||
|
||||
yield country_scrapy_item
|
||||
|
||||
Reference in New Issue
Block a user