Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 .gitignore
Octocat-spinner-32 README
youtube2mediawiki - import youtube videos into mediawiki

youtube2mediawiki allows you to download WebM videos from Youtube and import
them into Mediawiki.

Usage: [options] youtubeid

  -h, --help            show this help message and exit
  -u USERNAME, --username=USERNAME
                        wiki username
  -p PASSWORD, --password=PASSWORD
                        wiki password (can also be provided via Y2M_PASSWORD
                        environment vairable)
  -w URL, --url=URL     wiki api url
  -n NAME, --name=NAME  name of file on wiki, by default title on youtube is used


- If you run this on a shared server, you should not pass your password as an
  argument as it is visible via ps ax. Instead you can set an environment
    export Y2M_PASSWORD=yourpassword -u .

- A small number of Videos does not have a WebM version created by youtube. For
  newly uploaded videos it takes usually some hours until the WebM transcodes
  are publicly available. Additionally Videos have to be set to "unlisted" or
  "public" available.

- Some YouTube Video IDs start with a hyphen. You can also pass a url like or prepend a double hypen (--) to the
  YouTube ID to ensure youtube2mediawiki accepts them.

- Some names are not accepted on wiki projects and you may choose a more
  appropriate name using the NAME option (-n NAME.webm).
Something went wrong with that request. Please try again.