Manual:Pywikibot/newitem.py

newitem.py is a script used to mass create new items on  based on certain criteria.


 * When was the (Wikipedia) page created?
 * When was the last edit on the page?
 * Does the page contain interwikis?

Concept
New articles get created all the time on Wikipedia. With this script you can create new items connected to these articles. The bot looks at the age of the page and the last edit to the article. If both exceed the minimum threshold, the new item will be created. The default thresholds is 21 days for article creation and 7 days since last edit.

Syntax
The bot expects a :

You can modify the thresholds. This is the number of days. For example minimum age of 7 days and not edited for 2 days:

This script understands various command-line arguments: