site_detect
— Classes for Detecting MediaWiki Sites#
Classes for detecting a MediaWiki site.
- class site_detect.MWSite(fromurl, **kwargs)[source]#
Bases:
object
Minimal wiki site class.
- Raises:
pywikibot.exceptions.ServerError – a server error occurred while loading the site
Timeout – a timeout occurred while loading the site
RuntimeError – Version not found or version less than 1.27
- property api: Optional[str]#
Get api URL.
- property iwpath#
Get article path URL.
- property langs#
Build interwikimap.