2025 RationalWiki 'Oregon Plan' Fundraiser

There is no RationalWiki without you. We are a small non-profit with no staff—we are hundreds of volunteers who document pseudoscience and crankery around the world every day. We will never allow ads because we must remain independent. We cannot rely on big donors with corresponding big agendas. We are not the largest website around, but we believe we play an important role in defending truth and objectivity.

Fighting pseudoscience isn't free.
We are 100% user-supported! Help and donate $5, $10, $20 or whatever you can today with PayPal Logo.png!
Donations so far: $9223.37Goal: $10000

User:ZooBot/Pywikibot

From RationalWiki
Jump to navigation Jump to search

Pywikibot

Archiving talk pages

When User:Pibot is away:

  • mw:Manual:Pywikibot/archivebot.py (instructions are outdated? use -help instead)
  • archivebot-archiveheader needs to be set to talkpage (Template:Talkpage)
  • to respect sticky threads (crude): in should_be_archived, add and not self.title.endswith("(sticky)")
  • spits out error messages if Template:Talkpage/Pibot is filled in incorrectly; after fixing them page titles can be passed as a list through the -file parameter
  • TODO: set up a daemon/chron job?
python pwb.py archivebot -log -v Template:Talkpage/Pibot
python pwb.py archivebot -log -v Template:Talkpage/PibotHidden