
- #MEDIAWIKI MODULES CODE#
- #MEDIAWIKI MODULES PASSWORD#
The complete description of this project is available at T215682 Demo app A demo app based on some of the modules will also be created and a tutorial to explain its implementation will be written.
This project aims to improve the documentation of the API by re-writing it to follow this template and adding code samples to demonstrate the use of the API modules. A complete description is available here. The MediaWiki Action API is a REST API that provides access to wiki features like creating an account, logging in, creating and editing a page, searching for a title and many more. The title that caused the page error Type:Įxception working hours: 8:00 AM to 7:00 PM EAT (UTC+3) The page id that caused the page error Type:
pageid ( int) – MediaWiki page id of the page. PageError ( title=None, pageid=None ) ¶Įxception raised when no MediaWiki page matched a query Parameters: MediaWikiLoginError ( error ) ¶Įxception raised when unable to login to the MediaWiki site Parameters:Įxception mediawiki.exceptions. The error that was thrown when pulling GeoCoordinates Type:Įxception mediawiki.exceptions. MediaWikiGeoCoordError ( error ) ¶Įxceptions to handle GeoData exceptions Parameters:Įrror ( str) – Error message from the MediaWiki site related to GeoCoordinates The error message that the MediaWiki site returned Type:Įxception mediawiki.exceptions. MediaWikiException ( error ) ¶Įrror ( str) – The error message that the MediaWiki site returned The category that threw an exception during category tree generation Type:Įxception mediawiki.exceptions. MediaWikiCategoryTreeError ( category ) ¶Įxception when the category tree is unable to complete for an unknownĬategory ( str) – The category that threw an exception MediaWikiBaseException ( message ) ¶Įxception mediawiki.exceptions. The api url that raised the exception Type:Įxception mediawiki.exceptions.
MediaWikiAPIURLError ( api_url ) ¶Įxception raised when the MediaWiki server does not support the API Parameters:Īpi_url ( str) – The API URL that was not recognized Parameters:Įxception mediawiki.exceptions. HTTPTimeoutError ( query ) ¶Įxception raised when a request to the Mediawiki site times out. The url, if possible, of the disambiguation page Type:Įxception mediawiki.exceptions. The details of the proposed non-disambigous pages Type: Options only includes titles that link to valid MediaWiki pages details ¶ True if successfully logged in False otherwise
strict ( bool) – True to throw an error on failure. password ( str) – The password for the user. username ( str) – The username to log in with. proxies ( str) – A dictionary of specific proxies to use in the Requests libary. password ( str) – The password to use to log into the MediaWiki. username ( str) – The username to use to log into the MediaWiki. user_agent ( str) – The user agent string to use when making requests defaults to a library version but per the MediaWiki API documentation it recommends setting a unique one and not using the library’s default user-agent string. cat_prefix ( str) – The prefix for categories used by the mediawiki site defaults to Category (en). rate_limit_wait ( timedelta) – Amount of time to wait between requests.
rate_limit ( bool) – Use rate limiting to limit calls to the site.
timeout ( float) – HTTP timeout setting None means no timeout. lang ( str) – Language of the MediaWiki site used to help change API URL. url ( str) – API URL of the MediaWiki site defaults to Wikipedia. MediaWiki API Wrapper Instance Parameters: MediaWiki ( url=' lang='en', timeout=15.0, rate_limit=False, rate_limit_wait=datetime.timedelta(microseconds=50000), cat_prefix='Category', user_agent=None, username=None, password=None, proxies=None ) ¶