Hi J,
Op 21-7-2011 16:53, j(a)thing.net schreef:
Hi,
just wanted to let you know that I wrote a python script to import
videos from Youtube into any MediaWiki instance. This only works if the
video you are trying to import is available in WebM on Youtube.
Awesome! When is
WebM available by the way? Say for example the White
House stream?
The script is at:
https://github.com/bit/youtube2mediawiki
Example usage:
./youtube2mediawiki.py -u username -p password -w
http://commons.wikimedia.org/w/api.php DWef69ItVrU
A question regarding the import, right now assets are imported with a
page template that looks like this:
== {{int:filedesc}} ==
{{Information
|Description={{%(description)s}}
|Source={{Own}}
|Author=%(author)s
|Date=%(date)s
|Permission=
|other_versions=%(url)s
}}
<!--{{ImageUpload|full}}-->
== {{int:license}} ==
{{self|cc-by-sa-3.0,2.5,2.0,1.0}}
%(wiki_categories)s
if anyone got suggestions what should/could be added/changed please let
me know.
Can you also put it under the MIT license? Makes it easy to integrate it
in pywikipedia. Already have tools for Flickr (flickrripper.py) and
Panoramio (panoramiopicker.py).
A Youtube tool is still on my wishlist (see my previous mails on this
list). This would probably help me to make youtube_jacker.py :-)
Maarten