In this post. I will teach you how to make your own YouTube to MP3 Converter.
Ok, You will need these..
1 Web Browser (Visible - False)
1 Textbox
2 Buttons
Make it look like this..
http://cur.lv/4cl46
Ok, Let's continue...
In Form1_Load. Add this Code..
WebBrowser1.Navigate("http://www.youtube-mp3.org/")
Button1.Enabled = False
In WebBrowser. Add this Code..
Dim text As String = WebBrowser1.DocumentText
If text.Contains("submit-form") Then
Button1.Enabled = True
Else
Button1.Enabled = False
MsgBox("Could not connect to the internet!", MsgBoxStyle.Information, "Error")
End If
In Button1. Add this..
WebBrowser1.Document.GetElementById("youtube-url").SetAttribute("value", TextBox1.Text)
WebBrowser1.Document.GetElementById("submit").InvokeMember("click")
In Button 2. Add this..
Dim dl_link As HtmlElement = WebBrowser1.Document.GetElementById("dl_link")
Dim links As HtmlElementCollection = dl_link.GetElementsByTagName("a")
Dim url As String = links(0).GetAttribute("href")
System.Diagnostics.Process.Start(url)
HOPE THIS HELPS! oHH YEAH.. You need Internet for this.. :D