Saturday, 24 August 2013

how can I generate a youtube url given a keyword

how can I generate a youtube url given a keyword

On the youtube, after I input a keyword and click search button, youtube
website will generate a URL, e.g.
http://www.youtube.com/results?search_query=music&oq=music&gs_l=youtube.3..0l10.171609.172253.0.172424.5.5.0.0.0.0.154.483.4j1.5.0...0.0...1ac.1.11.youtube.4W9jG6LQXQA
From this URL we can see that the keyword is 'music' which is behind
'search_query=' and '&oq='. If I change the keyword but keep the left part
of this URL, e.g. I get
http://www.youtube.com/results?search_query=taylor&oq=taylor&gs_l=youtube.3..0l10.171609.172253.0.172424.5.5.0.0.0.0.154.483.4j1.5.0...0.0...1ac.1.11.youtube.4W9jG6LQXQA
, then the URL still can be used. My question is: what does the left part
of the youtube's URL mean:
&gs_l=youtube.3..0l10.171609.172253.0.172424.5.5.0.0.0.0.154.483.4j1.5.0...0.0...1ac.1.11.youtube.4W9jG6LQXQA
?
Could you give me an explanation ? This should not be the youtube API.
Thanks !

No comments:

Post a Comment