ia-upload
                                
                                
                                
                                    ia-upload copied to clipboard
                            
                            
                            
                        Tool to import DjVU files from the Internet Archive to Wikimedia Commons.
Internet Archive Upload Tool
A small tool to import DjVu files from Internet Archive to Wikimedia Commons. See it in operation at ia-upload.toolforge.org (or the test site at ia-upload-test.toolforge.org) and read the documentation at wikitech.wikimedia.org/wiki/Tool:IA_Upload.
Prerequesites
The actual format conversions are done by the following external tools, called from within IA Upload:
Installation
- 
Clone from GitHub:
git clone https://github.com/wikisource/ia-upload - 
Install dependencies:
composer install - 
Set up URL rewriting:
- 
For Apache use the following in
public/.htacess:RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php/$1 [L] - 
For Lighttpd, use:
url.rewrite-if-not-file += ( "/(.*)" => "/index.php$0" ) 
 - 
 - 
Register an oAuth consumer on Meta with a callback to e.g.
http://localhost/ia-upload/public/oauth/callback(i.e. ending inoauth/callback) - 
Edit
config.inito add your consumer key and secret - 
Make sure the
jobqueuedirectory is writable by the web server