pywikipedia Bot Multiple Image Upload

March 31, 2007

So I got another email from Dr. Workman about omahawiki.org and needing a bulk image uploader script for the pywikipedia bot framework. I decided to not go all out and write my own, like last time and just utilize the upload.py script that comes with the default package.

The information was in Excel, and could be exported to a delimited text file, so I chose to open the file, read a line, split it on a tab (tab-delimited file you see) and then have python do a system call to the upload.py script with all the necessary arguments.

Pretty rockin, didn’t do much validation or anything, but it seems to work. :) Check it out: jh_multiUploadFromFile.pys

Categories: Geek
Tags: , ,

Leave A Comment

Your email will not be published.