Google Video AVI Grabber

Members\' Social Area: Birthdays, Jokes, Riddles, General Chat & Insanity

Moderators: Moderator, Global Moderator

Post Reply
radar
Hero Member
Hero Member
Posts: 632
Joined: Thu Jun 17, 2004 12:37 am

Google Video AVI Grabber

Post by radar »

I personally hate having to download the google video player, and then the google video file itself. Why should we have to do this when there are already working solutions on our computers, like Winamp and to a lesser extent, Windows Media Player.

I bring you [url=\"http://www.frozenplague.net/googlevideo.php\"]Google Video AVI Grabber[/url]

It grabs the AVI file for ANY google video and stops you from having to download the google video player, it's GVP files and also you don't have to be on the Internet to view the file once it's downloaded. Then you can share it with your friends because they will most likely already have compatible video players.

Example URL: [url=\"http://video.google.com/videoplay?docid=4077724936497803978\"]http://video.google.com/videoplay?docid=4077724936497803978[/url]
Josh
Hero Member
Hero Member
Posts: 4627
Joined: Fri Jun 04, 2004 2:54 pm

Google Video AVI Grabber

Post by Josh »

I find this pretty cool, but how did you do it?
[align=center]

Image

“If you stop learning, you stop living.” ~Tami Quiring

“It's the rare man who understands the value of a single perfect rose.”

[/align]
radar
Hero Member
Hero Member
Posts: 632
Joined: Thu Jun 17, 2004 12:37 am

Google Video AVI Grabber

Post by radar »

Basically when you put in a URL it grabs the source code for the page, in which the AVI download link is buried. Then it grabs all the links beginning with a certain phrase (which I will not disclose), then it finds the 5th one of these and then outputs it in a "Download" format, like you were shown when you look at the page.

The entire script is only 24 lines long and two of those lines are so it fits into the design of FP.

The basic outline of the code is this:

Find what the user inputted.
Check to see if the page is relevant.
Grab the sourcecode.
Sort through all of the code and then stash into an array all the links beginning with "The Phrase"
Find the 5th One
Output it.
Post Reply

Return to “Phoenix Lounge”