Skip to content

Tool to import files from the Internet Archive to Wikimedia Commons.

Notifications You must be signed in to change notification settings

wikisource/ia-upload

Repository files navigation

Internet Archive Upload Tool

Scrutinizer Code Quality

A small tool based on Silex and Guzzle to import files from Internet Archive to Wikimedia Commons.

Installation

  1. Clone from GitHub: git clone https://github.com/Tpt/ia-upload

  2. Install dependences: composer install

  3. Set up URL rewriting:

    • For Apache use the following in web/.htacess:

      RewriteEngine On
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule ^(.*)$ index.php/$1 [L]
      
    • For Lighttpd, use:

      url.rewrite-if-not-file += ( "(.*)" => "index.php/$0" )
      
  4. Register an oAuth consumer on Meta with a callback to e.g. http://localhost/ia-upload/web/oauth/callback (i.e. ending in oauth/callback)

  5. Edit config.ini to add your consumer key and secret

  6. Make sure the temp directory is writable by the web server

About

Tool to import files from the Internet Archive to Wikimedia Commons.

Topics

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Languages