Return to Snippet

Revision: 13671
at May 1, 2009 18:37 by rowntreerob


Initial Code
$ wget --user-agent="Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; .NET CLR 1.1.4322; InfoPath.2)" -
d -Outub_3.xml "http://www.youtube.com/get_video?&video_id=VFGVzt7c5bY&t=vjVQa1PpcFO20YfQf-PC05xUFqFMJw-RffWDaQVHL1U=&fmt=5"

Setting --output-document (outputdocument) to utub_3.xml
DEBUG output created by Wget 1.11.3 on cygwin.

--2009-05-01 15:00:58--  http://www.youtube.com/get_video?&video_id=VFGVzt7c5bY&t=vjVQa1PpcFO20YfQf-PC05xUFqFMJw-RffWDaQVHL1U=&fmt=5
Resolving www.youtube.com... 208.117.236.74
Caching www.youtube.com => 208.117.236.74
Connecting to www.youtube.com|208.117.236.74|:80... connected.
Created socket 4.
Releasing 0x00ef0f18 (new refcount 1).

---request begin---
GET /get_video?&video_id=VFGVzt7c5bY&t=vjVQa1PpcFO20YfQf-PC05xUFqFMJw-RffWDaQVHL1U=&fmt=5 HTTP/1.0
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; .NET CLR 1.1.4322; InfoPath.2)
Accept: */*
Host: www.youtube.com
Connection: Keep-Alive

---request end---
HTTP request sent, awaiting response...
---response begin---
HTTP/1.1 303 See Other
Date: Fri, 01 May 2009 22:00:58 GMT
Server: Apache
X-Content-Type-Options: nosniff
Set-Cookie: use_hitbox=72c46ff6cbcdb7c5585c36411b6b334edAEAAAAw; path=/; domain=.youtube.com
Set-Cookie: VISITOR_INFO1_LIVE=2mKDdLCgvoQ; path=/; domain=.youtube.com; expires=Sun, 27-Dec-2009 22:00:58 GMT
Set-Cookie: GEO=d35c538373609e425a66fbc09c5b1057cwwAAAAyVVMYBcOnABpx+0k=; path=/; domain=.youtube.com
Expires: Tue, 27 Apr 1971 19:44:06 EST
X-YouTube-MID: WkFSZzctYUFHdmhPRkgtSFRiWWJRaDA4X0Exc2VYZGRTdmlCQlVTeW5BY3pIU1hrdWpfelBB
Cache-Control: no-cache
Location: http://v3.lscache3.googlevideo.com/videoplayback?sparams=id%2Cexpire%2Cip%2Cipbits%2Citag&itag=5&ip=24.5.195.167&signature=94C6945EFCA34A30A6CDA6EA7AB
6CFA13D8055B8.0129187173974171D38CB83145B09223B55D346C&sver=3&expire=1241236858&key=yt1&ipbits=0&id=545195cededce5b6
Connection: close
Content-Type: text/html; charset=utf-8

---response end---
303 See Other
cdm: 1 2 3 4 5 6 7 8
Stored cookie youtube.com -1 (ANY) / <session> <insecure> [expiry none] use_hitbox 72c46ff6cbcdb7c5585c36411b6b334edAEAAAAw
cdm: 1 2 3 4 5 6 7 8
Stored cookie youtube.com -1 (ANY) / <permanent> <insecure> [expiry 2009-12-27 14:00:58] VISITOR_INFO1_LIVE 2mKDdLCgvoQ
cdm: 1 2 3 4 5 6 7 8
Stored cookie youtube.com -1 (ANY) / <session> <insecure> [expiry none] GEO d35c538373609e425a66fbc09c5b1057cwwAAAAyVVMYBcOnABpx+0k=
Location: http://v3.lscache3.googlevideo.com/videoplayback?sparams=id%2Cexpire%2Cip%2Cipbits%2Citag&itag=5&ip=24.5.195.167&signature=94C6945EFCA34A30A6CDA6EA7AB
6CFA13D8055B8.0129187173974171D38CB83145B09223B55D346C&sver=3&expire=1241236858&key=yt1&ipbits=0&id=545195cededce5b6 [following]
Closed fd 4
--2009-05-01 15:00:58--  http://v3.lscache3.googlevideo.com/videoplayback?sparams=id%2Cexpire%2Cip%2Cipbits%2Citag&itag=5&ip=24.5.195.167&signature=94C6945EFCA3
4A30A6CDA6EA7AB6CFA13D8055B8.0129187173974171D38CB83145B09223B55D346C&sver=3&expire=1241236858&key=yt1&ipbits=0&id=545195cededce5b6
Resolving v3.lscache3.googlevideo.com... 74.125.15.22
Caching v3.lscache3.googlevideo.com => 74.125.15.22
Connecting to v3.lscache3.googlevideo.com|74.125.15.22|:80... connected.
Created socket 4.
Releasing 0x00ef1e78 (new refcount 1).

---request begin---
GET /videoplayback?sparams=id%2Cexpire%2Cip%2Cipbits%2Citag&itag=5&ip=24.5.195.167&signature=94C6945EFCA34A30A6CDA6EA7AB6CFA13D8055B8.0129187173974171D38CB83145
B09223B55D346C&sver=3&expire=1241236858&key=yt1&ipbits=0&id=545195cededce5b6 HTTP/1.0
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; .NET CLR 1.1.4322; InfoPath.2)
Accept: */*
Host: v3.lscache3.googlevideo.com
Connection: Keep-Alive

---request end---
HTTP request sent, awaiting response...
---response begin---
HTTP/1.1 200 OK
Content-Disposition: attachment; filename="video.flv"
Last-Modified: Sat, 17 May 2008 01:28:32 GMT
Content-Type: video/x-flv
Content-Length: 4005432
Expires: Fri, 01 May 2009 23:00:59 GMT
Cache-Control: public,max-age=3600
Connection: close
Date: Fri, 01 May 2009 22:00:59 GMT
Server: gvs 1.0

---response end---
200 OK
Length: 4005432 (3.8M) [video/x-flv]
Saving to: `utub_3.xml'

100%[======================================================================================================================>] 4,005,432   92.3K/s   in 31s

Initial URL

                                

Initial Description
using the token value from the first call for video information, get the video

Initial Title
youtube call 2 - get the actual video steam/file

Initial Tags

                                

Initial Language
Bash