Manual:Pywikibot/pagegenerators.py/cs

pagegenerators.py is a script used to generate list of pages for other scripts.

This module offers a wide variety of page generators. A page generator is an object that is iterable (see https://www.python.org/dev/peps/pep-0255/) and that yields page objects which other scripts can then use.



Použití v příkazovém řádku
pagegenerators.py nelze spouštět přímo. Lze ale použít skript.

Příklad:

This will return, in standard output, a list of all pages containing "foobar", as returned by MediaWiki's search engine.

Pro další informace vizte.



Volání z jiného skriptu
Category crawler:

Prohlížeč podkategorií:

MySQL requests (see ):



Doporučení pro Unicode
The following code returns KeyError: 'query' because of the special character:

If searching in user and mediawiki namespaces, it would look like

Consequently, an encoding conversion is needed:



Vizte též

 * Další dokumentaci najdete v dokumentech.