Admin Forum:Bot to tag unlicensed images

Forums: Admin Central Index → Technical Help → Bot to tag unlicensed images Wikia's forums are a place for the community to help other members. To contact staff directly or to report bugs, please use Special:Contact.

Now that the new editor is allowing people to completely bypass ever even seeing MediaWiki:Licenses, and since the Achievements icons all go up without a license or a category, we're starting to see an influx of pictures without either copyright notice or categories at w:c:tardis. I've got an implementation of pywikipediabot, but I'll be damned if I can figure out how to use it to add a copyright template to a page which isn't in a category. I try using add_text.py with the -untagged option, but it asks me "What project do you want to use?" and I can't seem to give it the answer it wants.

Does anyone have an implementation of any kind of automated process for either: a) putting uncategorized files into a category or b) adding templates to files which have no category? 01:23:14 Thu 08 Sep 2011


 * See this thread. — Sovq 06:13, September 8, 2011 (UTC)


 * Interesting. Thanks for the that tip.  I can see how it would be useful to generate a big log file and then use that file to perform other operations.  That gives me plenty of ideas.


 * However, I think I actually figured out how to use add_text.py to accomplish the goal of adding a license more directly. Turns out if you do something like:

add_text.py -text:"" -uncatfiles
 * you get access to uncategorized files, and then can proceed either manually or automatically through all the files.


 * Another helpful new wrinkle I've just learned, and may be helpful to others, is that you can change the parameter to quickly categorize all your achievements badges. So:

add_text.py -text:"" -prefixindex:"badge"
 * will add a license template named "achievements" to every image that begins with the word "badge". So that's a quick and easy way to license all your badges, since "badge" is the usual prefix.  I suppose that after the first run you'd have to add an "except" statement there to prevent putting the template on pages that already have it.  So:

add_text.py -text:"" -prefixindex:"badge" -except:"\{\{([Tt]emplate:|)[Aa]chievements"
 * If anyone else has any implementations of bot solutions which enforce policies about picture licensing, I'd love to hear them. 14:32:48 Thu 08 Sep 2011