Batch upload of images in Wikia

uploadwikia

I want to upload a bunch of pictures (PNG, approx. one thousand) to Wikia (if I understand it correctly it runs MediaWiki under the hood).

Is there a way to just select a directory on my PC, select a category it should be put to and let it automatically upload all the files?

I tried MultiUploader, but it throws a bunch of errors and even if it was working I don't know how to add all those newly uploaded images to one category.

Best Answer

There are several good options using the MediaWiki web API.

With a graphical interface: use VicuñaUploader. Not much to say, basically just install it and enter your wiki URL, directory. The rest will be obvious.

From the command line, use pywikibot's upload.py. Something like:

for image in $(ls); do ... upload.py -family:wikia -lang:mywiki -filename:$image -noverify; done