Skip to content

A Python bot to help maintain fancier features of the MOTHER wiki at CHM

License

Notifications You must be signed in to change notification settings

uwmadison-chm/factuator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

factuator

A Python bot to help maintain fancier features of the MOTHER wiki at CHM.

Requirements

python3 -m virtualenv .venv
source .venv/bin/activate
pip3 install -r requirements.txt

Kerberos security

You'll need to kinit to get a token.

Examples

Factuator can be loud, just add -v for info messages or -vv for debug logging.

Currently, it warns you if it's actually updating things, and it tries to only post changes if things are different.

Update study pages

Update all {{Study}} infobox templates on Category:Study pages.

python3 factuator.py --study

Media links

Replace all [[:File:Name.pdf]] and [[File:Name.pdf]] style links with [[Media:Name.pdf]] to make them link directly to the file.

On a page:

python3 factuator.py --medialinks-page User:Myname

On multiple pages:

python3 factuator.py --medialinks-page "Page 1" --medialinks-page "Page Title 2"

On all pages in a category:

python3 factuator.py --medialinks-category "Self Report Measure"

Rename category

Replace all [[Category:A]] with [[Category:B]]. (Does not currently check for [[:Category:A]].)

python3 factuator.py --rename-category A B

About

A Python bot to help maintain fancier features of the MOTHER wiki at CHM

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages