Template:File upload script intro

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search


This is Eloquence's upload bot, written in Perl. You need a recent distribution of Perl to run it.

1. Create a user account of the form "File Upload Bot (Username)" for your bot first.

2. Copy the script below into a file called "upload.pl"

3. Run the file with "perl upload.pl dirname", where "dirname" is a directory containing the files to be uploaded, as well as a file named "files.txt" which contains description (see sourcecode-comment below for format).

4. Change $username and $password accordingly to match the new user account created in #1.

Troubleshooting

E-Mail Eloquence if you have problems with the operation of this bot. This page is protected for security reasons - if you would like to suggest changes to the script, please comment on the talk page. (edit this intro)


Note

If you are attempting uploads to another MediaWiki (besides Commons) you might want to look at an offspring of Eloquence's script which includes configurable site addresses and downloads (for copying between two wikis): http://strategywiki.org/wiki/User:File_Upload_Bot_(Kernigh)