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.
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.
j
Hi J,
Op 21-7-2011 16:53, j@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
On 07/22/2011 01:15 PM, Maarten Dammers wrote:
Awesome! When is WebM available by the way? Say for example the White House stream?
On youtube? They said they were transcoding 80% of viewed content to WebM while back I think they plan to have everything in WebM in the "near future".
Also I don't know if Jan mentioned it already, but he ran some tests of the script on the TimedMediaHandler prototype page: http://prototype.wikimedia.org/timedmedia/File:MediaWiki_-_Basic_Principles_...
--michael
Hi Maarten,
Awesome! When is WebM available by the way? Say for example the White House stream?
most youtube videos are available in WebM, WebM support on commons.wikimedia.org will work once TMH is deployed(soon).
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).
ok switched to MIT license, feel free to integrate or use in your tools.
j
wikivideo-l@lists.wikimedia.org