I live in Omaha.
 
Navigation
 
Search
 
Random Image
Reception (58)
 
Me. Elsewhere.
 
Archives
 
Darcy
 
Recently Read
 
Things I Like
mongodb
 
License
 
pywikipedia Bot Multiple Image Upload

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

Posted March 31st, 2007 - Permalink
Categories: Geek
Tags: , ,
You can leave a comment, or trackback from your own site.
 
Possibly Related Posts
 
Adjacent Posts
 
Comments
 
Copyright © 2006 - 2010 John Hobbs
get userping