If you use SQLite, install php7-sqlite and uncomment extension=pdo_sqlite.If you use PostgreSQL, install php7-pgsql and uncomment extension=pgsql. If you use MariaDB, uncomment extension=mysqli. For more efficient Unicode normalization, install php7-intl and uncomment extension=intl.If you choose the latter, you also need to uncomment extension=gd. For thumbnail rendering, install either ImageMagick or php7-gd.MediaWiki requires the iconv extension, so you need to uncomment extension=iconv in /etc/php7/php.ini. The title that caused the page error Type:Įxception : This guide assumes that mediawiki depends on php7. 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 ) ¶
0 Comments
Leave a Reply. |