mediawiki_oauth: set User-Agent on all OAuth1Session instances so Wikimedia doesn't reject token and API requests with 403; add timeout parameter to api_post_request (default 4s). mediawiki_api: add APIError exception; wrap .json() in call() to raise APIError with status code and response body on decode failure; raise timeout to 30s for edit POSTs. api: wrap call_get_diff .json() with the same JSONDecodeError guard, raising MediawikiError with HTTP status and body on failure. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| api.py | ||
| core.py | ||
| language.py | ||
| match.py | ||
| mediawiki_api.py | ||
| mediawiki_api_old.py | ||
| mediawiki_oauth.py | ||
| util.py | ||
| wikipedia.py | ||