We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 96b120c + 32e4d7e commit 916a40cCopy full SHA for 916a40c
tests/test_publisher_collection.py
@@ -8,12 +8,13 @@
8
9
from fundus import PublisherCollection
10
from fundus.publishers import Publisher, PublisherGroup
11
+from fundus.scraping.session import _default_header
12
13
_language_code_selector = XPath("//table[contains(@class, 'wikitable') and @id='Table'] //td[@id] / @id")
14
15
16
def get_two_letter_code() -> List[str]:
- wiki_page = requests.get("https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes")
17
+ wiki_page = requests.get("https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes", headers=_default_header)
18
two_letter_codes: List[str] = _language_code_selector(lxml.html.document_fromstring(wiki_page.content))
19
return two_letter_codes
20
0 commit comments