Youtube Downloader
Quoi?
Youtube Downloader permet de downloader sur.. youtube (bien vu). Vous pouvez récupérer les vidéos en format .flv (faible qualité) ou .mp4 (bonne qualité). Pour en extracter la musique je vous conseille "Freez FLV to MP3 Converter".
Il est pratique mais assez lent, toutefois il marche

Code?
► Afficher le textele code
Code : Tout sélectionner
#include <GuiConstants.au3>
#include <IE.au3>
#include <string.au3>
Dim $s_html
_IEErrorHandlerRegister ()
$oIE = _IECreateEmbedded ()
GuiCreate("Youtube downloader", 600, 350)
GUICtrlCreatePic ("ressources/youtube.jpg", 0, 5, 600,57)
GUICtrlCreateLabel("© Jb <jbnh> D.", 520, 330)
$Input_1 = GUICtrlCreateInput("", 150, 70, 220, 20)
$Button_1 = GUICtrlCreateButton("Download", 370, 70, 70, 20)
GuiSetState()
While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
Case $msg = $Button_1
$url = "http://keepvid.com/?url=" & GUICtrlRead($Input_1)
$object_IE = _iecreate($url,0,0,1)
$oBody = _IEBodyReadHTML($object_IE)
_IEQuit($object_IE)
$link1 = _StringBetween($oBody, 'l.com<BR><BR><A class=link href="', '" target=_blank>')
$link2 = _StringBetween($oBody, '</B><BR><BR><A class=link href="', '" target=_blank>')
GUICtrlCreateObj($oIE,5, 110, 550, 200)
_IENavigate ($oIE, "about:blank")
$s_html &= '<html xmlns="http://www.w3.org/1999/xhtml">' & @CR
$s_html &= '<head>' & @CR
$s_html &= '<style type="text/css">' & @CR
$s_html &= 'html {padding:0;margin:0;}' & @CR
$s_html &= 'body {padding:25px 0px;margin:0;text-align:center;}' & @CR
$s_html &= '.links {width:500px;margin-top:20px;font-family:tahoma;font-size:11px;color:#999;}' & @CR
$s_html &= '.links h2 {color:#FFF;font-family:tahoma;font-size:11px;font-weight:bold;padding:8px 9px;border:1px solid #FFF;margin:0;background-color:#7EC836;}' & @CR
$s_html &= '.links a {color:#999;text-decoration:underline;}' & @CR
$s_html &= '.links a:hover {color:#666;}' & @CR
$s_html &= '.links a.link {font-weight:bold;color:#64B119;}' & @CR
$s_html &= '.links a.link:hover {color:#438800;}' & @CR
$s_html &= '.links-h {border:1px solid #C4DEAB;}' & @CR
$s_html &= '.links-c {padding:6px 10px 10px 10px;line-height:16px;}' & @CR
$s_html &= '.links-c em {font-style:normal;color:#666;}' & @CR
$s_html &= '</style>' & @CR
$s_html &= '</head><body>' & @CR
$s_html &= '<div class="links"><div class="links-h"><h2>Download links</h2>' & @CR
$s_html &= '<div class="links-c">' & @CR
$s_html &= '<a href="http://keepvid.com'& $link1[0] &'" class="link" target="_blank">›› Download ‹‹</a> <em>(get_video.flv - Low Quality)</em><br>Right-click download link, choose <b>"Save Link As..."</b>, and rename file to <b>get_video.flv</b><br><br><a href="http://keepvid.com'& $link2[0] &'" class="link" target="_blank">›› Download ‹‹</a> <em>(video.mp4 - High Quality)</em><br>Right-click download link and choose <b>"Save Link As..."</b> to download' & @CR
$s_html &= '</div></div></div>' & @CR
_IEDocWriteHTML($oIE, $s_html)
_IEAction($oIE, "refresh")
EndSelect
WEnd

Jbnh
Ancienne Version téléchargée 112 fois