Posted By

rowntreerob on 05/01/09


Tagged

YouTube


Versions (?)

youtube call 2 - get the actual video steam/file


 / Published in: Bash
 

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

  1. $ 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)" -
  2. d -Outub_3.xml "http://www.youtube.com/get_video?&video_id=VFGVzt7c5bY&t=vjVQa1PpcFO20YfQf-PC05xUFqFMJw-RffWDaQVHL1U=&fmt=5"
  3.  
  4. Setting --output-document (outputdocument) to utub_3.xml
  5. DEBUG output created by Wget 1.11.3 on cygwin.
  6.  
  7. --2009-05-01 15:00:58-- http://www.youtube.com/get_video?&video_id=VFGVzt7c5bY&t=vjVQa1PpcFO20YfQf-PC05xUFqFMJw-RffWDaQVHL1U=&fmt=5
  8. Resolving www.youtube.com... 208.117.236.74
  9. Caching www.youtube.com => 208.117.236.74
  10. Connecting to www.youtube.com|208.117.236.74|:80... connected.
  11. Created socket 4.
  12. Releasing 0x00ef0f18 (new refcount 1).
  13.  
  14. ---request begin---
  15. GET /get_video?&video_id=VFGVzt7c5bY&t=vjVQa1PpcFO20YfQf-PC05xUFqFMJw-RffWDaQVHL1U=&fmt=5 HTTP/1.0
  16. 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)
  17. Accept: */*
  18. Host: www.youtube.com
  19. Connection: Keep-Alive
  20.  
  21. ---request end---
  22. HTTP request sent, awaiting response...
  23. ---response begin---
  24. HTTP/1.1 303 See Other
  25. Date: Fri, 01 May 2009 22:00:58 GMT
  26. Server: Apache
  27. X-Content-Type-Options: nosniff
  28. Set-Cookie: use_hitbox=72c46ff6cbcdb7c5585c36411b6b334edAEAAAAw; path=/; domain=.youtube.com
  29. Set-Cookie: VISITOR_INFO1_LIVE=2mKDdLCgvoQ; path=/; domain=.youtube.com; expires=Sun, 27-Dec-2009 22:00:58 GMT
  30. Set-Cookie: GEO=d35c538373609e425a66fbc09c5b1057cwwAAAAyVVMYBcOnABpx+0k=; path=/; domain=.youtube.com
  31. Expires: Tue, 27 Apr 1971 19:44:06 EST
  32. X-YouTube-MID: WkFSZzctYUFHdmhPRkgtSFRiWWJRaDA4X0Exc2VYZGRTdmlCQlVTeW5BY3pIU1hrdWpfelBB
  33. Cache-Control: no-cache
  34. Location: http://v3.lscache3.googlevideo.com/videoplayback?sparams=id%2Cexpire%2Cip%2Cipbits%2Citag&itag=5&ip=24.5.195.167&signature=94C6945EFCA34A30A6CDA6EA7AB
  35. 6CFA13D8055B8.0129187173974171D38CB83145B09223B55D346C&sver=3&expire=1241236858&key=yt1&ipbits=0&id=545195cededce5b6
  36. Connection: close
  37. Content-Type: text/html; charset=utf-8
  38.  
  39. ---response end---
  40. 303 See Other
  41. cdm: 1 2 3 4 5 6 7 8
  42. Stored cookie youtube.com -1 (ANY) / <session> <insecure> [expiry none] use_hitbox 72c46ff6cbcdb7c5585c36411b6b334edAEAAAAw
  43. cdm: 1 2 3 4 5 6 7 8
  44. Stored cookie youtube.com -1 (ANY) / <permanent> <insecure> [expiry 2009-12-27 14:00:58] VISITOR_INFO1_LIVE 2mKDdLCgvoQ
  45. cdm: 1 2 3 4 5 6 7 8
  46. Stored cookie youtube.com -1 (ANY) / <session> <insecure> [expiry none] GEO d35c538373609e425a66fbc09c5b1057cwwAAAAyVVMYBcOnABpx+0k=
  47. Location: http://v3.lscache3.googlevideo.com/videoplayback?sparams=id%2Cexpire%2Cip%2Cipbits%2Citag&itag=5&ip=24.5.195.167&signature=94C6945EFCA34A30A6CDA6EA7AB
  48. 6CFA13D8055B8.0129187173974171D38CB83145B09223B55D346C&sver=3&expire=1241236858&key=yt1&ipbits=0&id=545195cededce5b6 [following]
  49. Closed fd 4
  50. --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
  51. 4A30A6CDA6EA7AB6CFA13D8055B8.0129187173974171D38CB83145B09223B55D346C&sver=3&expire=1241236858&key=yt1&ipbits=0&id=545195cededce5b6
  52. Resolving v3.lscache3.googlevideo.com... 74.125.15.22
  53. Caching v3.lscache3.googlevideo.com => 74.125.15.22
  54. Connecting to v3.lscache3.googlevideo.com|74.125.15.22|:80... connected.
  55. Created socket 4.
  56. Releasing 0x00ef1e78 (new refcount 1).
  57.  
  58. ---request begin---
  59. GET /videoplayback?sparams=id%2Cexpire%2Cip%2Cipbits%2Citag&itag=5&ip=24.5.195.167&signature=94C6945EFCA34A30A6CDA6EA7AB6CFA13D8055B8.0129187173974171D38CB83145
  60. B09223B55D346C&sver=3&expire=1241236858&key=yt1&ipbits=0&id=545195cededce5b6 HTTP/1.0
  61. 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)
  62. Accept: */*
  63. Host: v3.lscache3.googlevideo.com
  64. Connection: Keep-Alive
  65.  
  66. ---request end---
  67. HTTP request sent, awaiting response...
  68. ---response begin---
  69. HTTP/1.1 200 OK
  70. Content-Disposition: attachment; filename="video.flv"
  71. Last-Modified: Sat, 17 May 2008 01:28:32 GMT
  72. Content-Type: video/x-flv
  73. Content-Length: 4005432
  74. Expires: Fri, 01 May 2009 23:00:59 GMT
  75. Cache-Control: public,max-age=3600
  76. Connection: close
  77. Date: Fri, 01 May 2009 22:00:59 GMT
  78. Server: gvs 1.0
  79.  
  80. ---response end---
  81. 200 OK
  82. Length: 4005432 (3.8M) [video/x-flv]
  83. Saving to: `utub_3.xml'
  84.  
  85. 100%[======================================================================================================================>] 4,005,432 92.3K/s in 31s

Report this snippet  

You need to login to post a comment.