PDA

View Full Version : Get info from URLencoded


nicoh
10-30-2008, 11:00 AM
Hi again.

Im trying to take information from a URLEncoded file.

For be specific its from Youtube.

The path of the file is something like http://www.youtube.com/get_video_info?video_id=VIDEO_ID

Where VIDEO_ID is the ID of the video (dah!).

Well, the problem is that when I load the URL on my navigator (FF) it downloads all as a file with the information.

Exist a posiblity to get the info direcly and save is as a string for use later?

Thanks :)

jassing
10-30-2008, 11:41 AM
I admit my web-skills are not extremely high.. but what is a urlencoded file?

presidente
10-30-2008, 11:59 AM
Here is something about urlencoding, but iīm too donīt know what is a urlencoding-file.

http://www.blooberry.com/indexdot/html/topics/urlencoding.htm

URLencoding is for spezial characters.

I think they use temporary urlīs for the download.

jassing
10-30-2008, 12:07 PM
Yes; I know what urlencoding is - just not what "urlencoded file" is.... UU encoded maybe?

nicoh
10-30-2008, 12:47 PM
You can try downloading this to have an idea: http://www.youtube.com/get_video_info?video_id=RTh2pADosNs


Firefox tells me:
what is? application/x-www-form-urlencoded

Dermot
10-30-2008, 12:51 PM
It's just a text file. Open it with Notepad or any other text editor.

ShadowUK
10-30-2008, 01:16 PM
You can try downloading this to have an idea: http://www.youtube.com/get_video_info?video_id=RTh2pADosNs


Firefox tells me:
what is? application/x-www-form-urlencoded

status=ok&title=Basshunter+-+Dota+%2B+translation&muted=0&avg_rating=4.78808243728&creator=Kiwikuchen&length_seconds=235&fmt_map=&token=OEgsToPDskLGWEZ7xhfVxl3nhswx7xAn&thumbnail_url=http%3A%2F%2Fi3.ytimg.com%2Fvi%2FRTh 2pADosNs%2Fdefault.jpg&allow_ratings=True&plid=AARafHe7xEDhPgDWAAAAoARoIAE&track_embed=1

nicoh
10-30-2008, 01:19 PM
Yes, I know that I can open it with notepad.

But, I need to use the file as string to get the values in AMS.. is this possible?

reteset
10-30-2008, 02:24 PM
a similar thing that i have replied before
download file with URL
load it with textfile.readtostring()
and assign it to a numerically indexed table

example is here (http://www.indigorose.com/forums/showthread.php?t=21636)

note: example shows only how to parse a string like that

ps: i can not open http://www.youtube.com for the test
because that site blocked by my ISP

nicoh
10-30-2008, 02:32 PM
a similar thing that i have replied before
download file with URL
load it with textfile.readtostring()
and assign it to a numerically indexed table

example is here (http://www.indigorose.com/forums/showthread.php?t=21636)

note: example shows only how to parse a string like that

ps: i can not open http://www.youtube.com for the test
because that site blocked by my ISP

Ok, I must leave my home now... @ night Ill test it.

Thanks ;)