Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError: 'url' from langlinks method #214

Closed
pidgey016 opened this issue Nov 4, 2024 · 2 comments
Closed

KeyError: 'url' from langlinks method #214

pidgey016 opened this issue Nov 4, 2024 · 2 comments
Labels

Comments

@pidgey016
Copy link

Link

https://en.wikipedia.org/?curid=68323503

API Result

{'lang': 'bn', '*': 'বিষয়শ্রেণী:জেরুসালেমের হিব্রু বিশ্ববিদ্যালয়ের সামাজিক বিজ্ঞান অনুষদের প্রাক্তন শিক্ষার্থ�'}

Web Result

image

image

Error log

Traceback (most recent call last):
File "/app/wikipedia/test.py", line 32, in
print(page.langlinks)
^^^^^^^^^^^^^^
File "/root/miniconda3/envs/py312/lib/python3.12/site-packages/wikipediaapi/init.py", line 1002, in langlinks
self._fetch("langlinks")
File "/root/miniconda3/envs/py312/lib/python3.12/site-packages/wikipediaapi/init.py", line 1071, in _fetch
getattr(self.wiki, call)(self)
File "/root/miniconda3/envs/py312/lib/python3.12/site-packages/wikipediaapi/init.py", line 376, in langlinks
return self._build_langlinks(v, page)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/miniconda3/envs/py312/lib/python3.12/site-packages/wikipediaapi/init.py", line 612, in _build_langlinks
url=langlink["url"],
~~~~~~~~^^^^^^^
KeyError: 'url'

Copy link

This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label Dec 20, 2024
Copy link

This issue was closed because it has been stalled for 10 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant