How to download videos from indavideo.hu with VideoTube Downloader, TV shows, movies - Enjoy anywhere your favorite online videos and convert them to formats compatible with iPad, iPhone, iPad. (HTTP Live Streaming - M3U8) and VOD files (Video-On-Demand files like MP4, MOV, FLV, MP3, AAC etc).
The easiest way to convert YouTube videos to MP3 or MP4. Watch or listen downloaded videos or music anywhere and on any device
Convert
By using the service you are accepting our terms of use
Tip: While watching a video on YouTube: add 'conv' (without quotes) before 'youtube.com' or 'youtu.be' in the URL and press Enter to convert to MP3, GIF or MP4.
How to download from YouTube?
Converto.io is the fast and easy way to download and save any YouTube video to MP3 or MP4. Simply copy YouTube URL, paste it on Converto.io and click on 'Convert' button.
You don't need to install special software - our service works online. Converto.io allows you to download and convert any YouTube video to MP3 (audio) or to MP4 format (video). Before downloading you can edit the filename, ID3 tags, select the part you want to cut or change the video quality by clicking the 'Settings' button. Converto.io also automatically adds album art (cover) to all MP3s to make your music collection look awesome.
Converto.io is 100% free. Converting YouTube to MP3 and YouTube to MP4 will take only a few seconds.
ivd.py
#!/usr/bin/env python |
# -*- coding: utf8 -*- |
'' |
Downloader for http://indavideo.hu/ |
Author: András Veres-Szentkirályi <[email protected]> |
License: MIT |
'' |
from lxml import html |
from urllib2 import urlopen |
from subprocess import call |
import re |
import sys |
__prefs__ = ('720', '360', 'webm') |
__amftpl__ = ('0x03000x010!player.playerHandler.getVideoData0x02/1' |
'000!n000x04x020n{vid}0@(000000x0200x0200') |
defmain(): |
''Downloads the video from the URL in argv[1] (if specified)'' |
iflen(sys.argv) <2: |
print>> sys.stderr, 'Usage: %s <url>'% sys.argv[0] |
else: |
download(sys.argv[1]) |
defdownload(url): |
''Downloads the video from the URL in the url parameter'' |
videos = getvideos(url) |
video_url = preferred(videos) |
call(['wget', video_url]) |
defpreferred(videos): |
''Returns the preferred URL from the iterable in the videos parameter'' |
for pref in __prefs__: |
for video in videos: |
if pref in video: |
return video |
returnlist(videos)[0] |
defurl2vid(url): |
''Returns the ID of the video on the URL in the url parameter'' |
video = html.parse(urlopen(url)).getroot() |
video_src = video.xpath('/html/head/link[@rel = 'video_src']/@href' |
' | /html/head/meta[@property='og:video']/@content')[0] |
return re.search('vID=([^&]+)&', video_src).group(1) |
defgetvideos(url): |
''Returns URLs that contain the video on the URL in the url parameter'' |
amfreq = __amftpl__.format(vid=url2vid(url)) |
amfresp = urlopen('http://amfphp.indavideo.hu/gateway.php', amfreq).read() |
returnset(re.findall(r'http://[a-zA-Z0-9/._]+.(?:mp4|webm|flv)', amfresp)) |
if__name__'__main__': |
main() |
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment