Manual:Pywikibot/pagefromfile.py

In other languages: en - it - fr - ja

Pagefromfile.py is part of the Pywikipedia bot framework. With this script you can create pages from a textfile. The file should be in UTF-8 and if you want to create multiple pages from a file you should separate the articles as specified by the -start and -end arguments.

The pagename will be the first headword in your textfile (the first word between    ). It is currently automatically inserted in the uploaded page.

WARNING: the script parses the input text in a recursive way, so it can easily run out of memory if the text contains several pages. It is advisable to break the input text into single pages and upload them individually.

Specific arguments:

E.g.: Filename.xml xxxx PageName Text here

yyyy xxxx AnotherPageName Another text yyyy Usage: pagefromfile.py [global-arguments] -start:xxxx -end:yyyy -file:Filename.xml