MediaWiki upload bot for NARA
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 73 commits ahead, 20 commits behind franrogers:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
EAP test cases
EAP files
OPA Public API Reference Guide v1-4.docx


MediaWiki upload bot for NARA.

This fork was created as part of a field study project at the University of Maryland's iSchool in spring 2014.

A basic operation can be run with this command:

python \
--username "myUsername" --password "myPassword" \
--index "/path/to/index/of/files.txt" "/path/to/folder/of/images/"

There is an additional optional "-- max-size" parameter which will instruct the bot to skip over files larger than the size specified in bytes (e.g. "-- max-size 104857600" to upload only files under 100 MB).

In order for this script to work, you will need:

The last two can be installed using pip using "pip install pillow" and "pip install beautifulsoup4". If you are running this on Mavericks, you may encounter some issues with Pillow, however we have gotten it to work using publicized workarounds.