Hello! In this post, I'll show you my small new project. With this software, you can download Youtube videos as mp3 files. It works with http://www.youtube-mp3.org where program sends commands that convert video and sends download link of mp3 file to the program.
To convert a video, you must do the following three steps:
Now see that in code!
TextBox1
textbox
Button2
Button1_Click
Button1
If TextBox1.Text.StartsWith("http://www.youtube.com/watch?v=") Then Button2.Enabled = True Else Button2.Enabled = False End If
Button3
Button2_Click
WebBrowser1.Document.GetElementById("youtube-url").SetAttribute("value", TextBox1.Text) WebBrowser1.Document.GetElementById("submit").InvokeMember("click") Button3.Enabled = True
Button3_Click
Dim download_link As HtmlElement = WebBrowser1.Document.GetElementById("dl_link") Dim links As HtmlElementCollection = download_link.GetElementsByTagName("a") Dim link As String = links(0).GetAttribute("href") System.Diagnostics.Process.Start(link)
Form1_Load
WebBrowser1.Navigate("http://www.youtube-mp3.org/")
In this project, you need TextBox1, Button1, Button2, Button3, WebBrowser1.
WebBrowser1
The source isn't available, but you can download the application here.
The software is available only in Serbian language!