python wikipedia library: random()/page() throws JSONDecodeError (429 on default user-agent)
Set your own User-Agent instead of Python/requests' default: too many clients share the default UA and get collectively rate-limited by Wikipedia, which surfaces as a JSONDecodeError because the 429 response has no JSON body. Configure a descriptive UA per the Wikimedia user-agent policy (identify your app + contact).…
Problem outcome: unknown