Jump to content

User:Inductiveload/Scripts/Archive.org API

From Wikisource

In order to upload to the Internet Archive, you need:

  1. An IA account
  2. API keys, get these from http://www.archive.org/account/s3.php once you are logged in
  3. cURL, the file transfer client

Uploading

[edit]
sourcefile="/home/user/dir/CycloS2_images.zip"

identifier="Cyclopaediachambers-SupplementVolume2"
targetname="CycloS2_images.zip"

accesskey="youraccesskey"
secret="yoursecretkey"

curl --location \
     --header "authorization: LOW $accesskey:$secret" \
     --upload-file  $sourcefile\
     --verbose \
     http://s3.us.archive.org/$identifier/$targetname
[edit]