chore: debug anthem
This commit is contained in:
@@ -12,6 +12,8 @@ class WikipediaCountryScraperItem(scrapy.Item):
|
|||||||
country = scrapy.Field()
|
country = scrapy.Field()
|
||||||
flag_description = scrapy.Field()
|
flag_description = scrapy.Field()
|
||||||
anthem = scrapy.Field()
|
anthem = scrapy.Field()
|
||||||
|
anthem_url = scrapy.Field()
|
||||||
|
anthem_file_url = scrapy.Field()
|
||||||
|
|
||||||
file_urls = scrapy.Field()
|
file_urls = scrapy.Field()
|
||||||
files = scrapy.Field()
|
files = scrapy.Field()
|
||||||
|
|||||||
@@ -108,6 +108,8 @@ class CountrydownloaderSpider(scrapy.Spider):
|
|||||||
country_scrapy_item["country"] = country_item["country"]
|
country_scrapy_item["country"] = country_item["country"]
|
||||||
country_scrapy_item["flag_description"] = country_item["flag_description"]
|
country_scrapy_item["flag_description"] = country_item["flag_description"]
|
||||||
country_scrapy_item["anthem"] = anthem_text
|
country_scrapy_item["anthem"] = anthem_text
|
||||||
|
country_scrapy_item["anthem_url"] = urls["anthem_page_url"]
|
||||||
|
country_scrapy_item["anthem_file_url"] = f"https://en.wikipedia.org{anthem_file_url}"
|
||||||
country_scrapy_item["file_urls"] = [
|
country_scrapy_item["file_urls"] = [
|
||||||
country_item["flag_image_url"],
|
country_item["flag_image_url"],
|
||||||
f"https://en.wikipedia.org{anthem_file_url}",
|
f"https://en.wikipedia.org{anthem_file_url}",
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user