Url stuff (need basic help)

Posts 1–5 of 5 · Page 1 of 1
Url stuff (need basic help)
Hey guys!

I'm relatively new to Visual Basic, and I'm loving it!

I'm trying to create a program which downloads YouTube videos as MP3 files. Let me tell you my plan, and what I need help with:

When you open my program, a browser that goes to YouTube will open (just the browser in the VB 2010 toolbox). You search for a video or whatever, and once you've found and are watching the one you want, you click a button. This button takes the URL of the video, and does the following:
If the url is http://youtube.com/watch/abc
It turns that into http://youtubeINMP3.com/watch/abc
and then navigates to that page.

THAT is the part I'm struggling with. Any ideas on how to accomplish that?

Thanks in advance!
You can parse the string so you get the ID of the video and then append it to the other url, OR you can insert the INMP3 string into the original one (the index should always be the same)

Check String.Insert, String.LastIndexOf and String.Substring

I'm sure @abuckau907 will give you some detailed information, since he got more time to explain
Quote Originally Posted by Biesi View Post
You can parse the string so you get the ID of the video and then append it to the other url, OR you can insert the INMP3 string into the original one (the index should always be the same)

Check String.Insert, String.LastIndexOf and String.Substring

I'm sure @abuckau907 will give you some detailed information, since he got more time to explain
Moar detail please
Quote Originally Posted by Harpoon. View Post


Moar detail please
If you don't understand how to use the string classes most basic methods you should step back from your project and go learn more about the language first.
Try
Code:
NewUrlStringVar = OldUrlStringVar.Insert(14, "inmp3")
Idk if this works..
Posts 1–5 of 5 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us