YouTube to MP3 Converter | Tutorial |
Heres your chance to share your own tutorials with the community. Just post them on here. If your lucky they may even be posted on the main site.
7 posts
Page 1 of 1
Hello!
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.. I would like to Thank, #mandai for helping me with this cooll;
Ok, Let's continue...
In Form1_Load. Add this Code..
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.. I would like to Thank, #mandai for helping me with this cooll;
Ok, Let's continue...
In Form1_Load. Add this Code..
Code: Select all
In WebBrowser. Add this Code..
WebBrowser1.Navigate("http://www.youtube-mp3.org/")
Button1.Enabled = False
Code: Select all
In Button1. Add this..
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
Code: Select all
In Button 2. Add this..
WebBrowser1.Document.GetElementById("youtube-url").SetAttribute("value", TextBox1.Text)
WebBrowser1.Document.GetElementById("submit").InvokeMember("click")
Code: Select all
HOPE THIS HELPS! oHH YEAH.. You need Internet for this.. goofy;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)
You do not have the required permissions to view the files attached to this post.
Last edited by 3aaBrSbeel on Mon Aug 20, 2012 7:50 am, edited 2 times in total.
mshimranpro wrote:nice tutorial "short and sweet"Thanks. Couldn't done this without a help from #mandai clapper;
Thanks #AnoPem blusho;
nice tut, but where and what do i do with button 2, or the one that isnt visible on the image?? idoit;
Bloodz_Ninja wrote:nice tut, but where and what do i do with button 2, or the one that isnt visible on the image?? idoit;
Button2 should be visible its the button you press to download the file, and button1 you convert the file to mp3
7 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023