Manual:Pywikibot/archivebot.py

archivebot.py is a script used to archive discussion pages.

Usage
Bot examines backlinks (Special:Whatlinkshere) to TEMPLATE_PAGE.

Then goes through all pages (unless a specific page specified using options) and archives old discussions.

This is done by breaking a page into threads, then scanning each thread for timestamps.

Threads older than a specified threshold are then moved to another page (the archive), which can be named either basing on the thread's name or then name can contain a counter which will be incremented when the archive reaches a certain size.

For a documentation on on-wiki setup, please see.