Manual:Pywikibot/pagefromfile.py

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.

NOTE: the script parses the input text in a recursive way, so it can easily run out of memory if the file is very large. If memory problems are encountered, it is advisable to break the input text into multiple files, and upload them individually.

Specific arguments:

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

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