Skip to content


Switch branches/tags
This branch is 52 commits ahead, 247 commits behind bibanon:master.

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time
  - Youtube (and other video site) to Internet Archive Uploader uses youtube-dl to download a Youtube video (or any other provider supported by youtube-dl), and then uploads it with all metadata to the Internet Archive.

It was designed by the Bibliotheca Anonoma to archive entire Youtube accounts and playlists to the Internet Archive.


This script strongly recommends Linux or some sort of POSIX system (such as Mac OS X).

If you are using Windows, we recommend that you run this script in, which gives you a full Linux development environment with 5GBs of space, on the cloud. It may be possible to run this script on Windows + Python3 with great difficulty, but we don't recommend it.

  • Python 3 - This script requires python3, which has better integration with Unicode strings.
  • docopt - The usage documentation can specify command line arguments and options.
  • youtube-dl - Used to download the videos.
  • internetarchive - A Python library used to upload videos with their metadata to the Internet Archive.


  1. Install avconv or ffmpeg, depending on what your distro prefers. Also install pip3 and git. The script prefers ffmpeg if found but will work with just libav. To install ffmpeg in ubuntu have the Universe repository enabled.

For Debian/Ubuntu:

    sudo apt-get install libav-tools ffmpeg x264 x265 python3-pip git mkvtoolnix
  1. Use pip3 to install the required python3 packages. Python 3.4.2 and up is required, as 3.2 will not work.

     sudo -H pip3 install -U pip docopt youtube_dl internetarchive
  2. If you don't already have an Internet Archive account, register for one to give the script upload privileges.

  3. Configure internetarchive with your Internet Archive account. You will be prompted for your username and password.

     ia configure
  4. Clone this repository to your Linux system.

     git clone
     cd tubeup
  5. Start archiving a video by running the script on a URL. Or multiple URLs at once. Youtube, Dailymotion, anything supported by youtube-dl. For YouTube, this includes account URLs and playlist URLs. ./

  6. Each archived video gets it's own item. Check out what you've uploaded at

Usage - Download a video with Youtube-dl, then upload to Internet Archive, passing all metadata.

Usage: <url>... [--metadata=<key:value>...] [--proxy <prox>] -h | --help

  <url>                         Youtube-dl compatible URL to download.
                                Check Youtube-dl documentation for a list
                                of compatible websites.
  -m, --metadata=<key:value>    Custom metadata to add to the

  -h --help       Show this screen.
  --proxy <prox>  Use a proxy while uploading.


You can specify custom metadata with the --metadata flag. For example, this script will upload your video to the [Community Video collection] ( by default. You can specify a different collection with the --metadata flag: <url> --metadata=collection:opensource_audio

Any arbitrary metadta can be added to the item, with a few exceptions. You can learn more about metadata [here] (

Collections users can upload to to four open collections:

Note that care should be taken when uploading entire channels. Read the appropraite section [in this guide] ( for creating collections, and contact the [collections staff] (mailto: if you're uploading a channel or multiple channels on one subject (gaming or horticulture for example), they'll create a collection for you or merge any uploaded items based on the Youtube uploader name that are already up into a new collection.

Dumping entire channels into Community Video is abusive and may get your account locked. Talk to the admins first before doing large uploads it's better to ask for guidence or help first than run afowl with the rules.

If you do not own a collection you will need to be added as an admin for that collection if you want to upload to it Talk to the collection owner or staff if you need assistance with this.


  • If you've already downloaded some videos, unless you delete the video youtube-dl will not redownload it and will output nothing.
  • Obviously, if someone else uploaded the video to the Internet Archive, you will get a permissions error. We don't want duplicates, do we?
  • Some videos are copyright blocked in certain countries. Use the proxy option to use a proxy to bypass this.


Inspired by youtube2internetarchive by Matt Hazinski, Copyright (c) 2015 GPLv3.

Which in turn is a fork of emijrp's, written in 2012.

This script improves on Matt Hazinski's work by interfacing directly with youtube-dl as a library, rather than functioning as an external script.

License (GPLv3)

Copyright (C) 2016 Bibliotheca Anonoma

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see


Download a video using youtube-dl and upload to the Internet Archive with metadata.







No releases published


No packages published


  • Python 100.0%