Closed nevakrien closed 4 weeks ago
Hi! I got the same problem and fortunately I found a fix!
Despite the documentation in the wikimedia API, they expect {"Authorization": f"{secrets2['Access token']}"})
directly. Note that "Bearer" is not there.
Removing that I got mine working.
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.
This issue was closed because it has been stalled for 10 days with no activity.
wiki_he = wikipediaapi.Wikipedia(language='he',user_agent=user_agent, headers={"Authorization": f"Bearer {secrets2['Access token']}"}) wiki_he.page("אמנות").text
this works for the English equivalent of the page with english as lang