How do I do this?

Associate
Joined
6 Jul 2003
Posts
2,075
Will probably be in c#.net but just the general process of steps will be fine and I'll research the rest myself.

What I want is a function similar to on Facebook, where you paste in a youtube link and it pulls the title, image, and description straight from youtube.

I'm guessing reading the page line by line for the specific html tag id and grabbing it that way? Can anyone elaborate?

Thanks!
 
Check if youtube has an API for that kind of thing.

If not then as you say you just need to do a screen scrape. Save the HTML output of the page into a variable. Search for a unique string which appears just prior to the value you want. From that point, search for a string that appears just after the value you want. The text between those 2 position points is the value.
 
Back
Top Bottom