jayvdb created this task.
Herald added subscribers: pywikibot-bugs-list, Zppix, Aklapper.

TASK DESCRIPTION
  Pywikibot has a script `basic.py` which is a template script, and 
https://gerrit.wikimedia.org/r/#/c/289361/ will add a `EditingPageBot`.
  Media tagging bots do some analysis on the **file** (not the page), and then 
edit the page, adding a category or otherwise 'tagging' the page.
  
  We should have a `MediaTagBot` class in `bot.py`, for simple scripts to use 
(we can "bikeshed" the name later).  It would:
  
  - fetch the file in a cachable way (and ensuring the cached name allows for 
files to have multiple revisions) ,
  - provide the `treat` method with a `FilePage`,
  - have instance attribute for important details like the file path, and
  - have a method to load the file.
  
  Then subclasses do not need to bother with the internals of fetching the 
file, storing it, and removing it.
  
  (Catimages may not use `MediaTagBot`, so it doesnt need to be considered when 
designing and building `MediaTagBot` ).

TASK DETAIL
  https://phabricator.wikimedia.org/T135894

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: AbdealiJK, jayvdb
Cc: Aklapper, Zppix, pywikibot-bugs-list, jayvdb, Mdupont, Jay8g



_______________________________________________
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to