youtube call 3 - get the actual video steam/file directly from the cache


/ Published in: Bash
Save to your folder(s)

response from call #2 has "Location:" in the headers . See the '303' response, the direct location in cache that could be requested by client ( no token req'd ). This request does not need a token . It calls the cache.


Copy this code and paste it in your HTML
  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_4.xml "http://v3.lscache3.googlevideo.com/videoplayback?sparams=id%2Cexpire%2Cip%2Cipbits%2Citag&itag=5&ip=24.5.195.167&signature=94C6945EFCA34A30A6CD
  3. A6EA7AB6CFA13D8055B8.0129187173974171D38CB83145B09223B55D346C&sver=3&expire=1241236858&key=yt1&ipbits=0&id=545195cededce5b6"
  4.  
  5. Setting --output-document (outputdocument) to utub_4.xml
  6. DEBUG output created by Wget 1.11.3 on cygwin.
  7.  
  8. --2009-05-01 15:58:45-- http://v3.lscache3.googlevideo.com/videoplayback?sparams=id%2Cexpire%2Cip%2Cipbits%2Citag&itag=5&ip=24.5.195.167&signature=94C6945EFCA3
  9. 4A30A6CDA6EA7AB6CFA13D8055B8.0129187173974171D38CB83145B09223B55D346C&sver=3&expire=1241236858&key=yt1&ipbits=0&id=545195cededce5b6
  10. Resolving v3.lscache3.googlevideo.com... 74.125.15.22
  11. Caching v3.lscache3.googlevideo.com => 74.125.15.22
  12. Connecting to v3.lscache3.googlevideo.com|74.125.15.22|:80... connected.
  13. Created socket 4.
  14. Releasing 0x00ee1278 (new refcount 1).
  15.  
  16. ---request begin---
  17. GET /videoplayback?sparams=id%2Cexpire%2Cip%2Cipbits%2Citag&itag=5&ip=24.5.195.167&signature=94C6945EFCA34A30A6CDA6EA7AB6CFA13D8055B8.0129187173974171D38CB83145
  18. B09223B55D346C&sver=3&expire=1241236858&key=yt1&ipbits=0&id=545195cededce5b6 HTTP/1.0
  19. 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)
  20. Accept: */*
  21. Host: v3.lscache3.googlevideo.com
  22. Connection: Keep-Alive
  23.  
  24. ---request end---
  25. HTTP request sent, awaiting response...
  26. ---response begin---
  27. HTTP/1.1 200 OK
  28. Content-Disposition: attachment; filename="video.flv"
  29. Last-Modified: Sat, 17 May 2008 01:28:32 GMT
  30. Content-Type: video/x-flv
  31. Content-Length: 4005432
  32. Expires: Fri, 01 May 2009 23:58:46 GMT
  33. Cache-Control: public,max-age=3600
  34. Connection: close
  35. Date: Fri, 01 May 2009 22:58:46 GMT
  36. Server: gvs 1.0
  37.  
  38. ---response end---
  39. 200 OK
  40. Length: 4005432 (3.8M) [video/x-flv]
  41. Saving to: `utub_4.xml'
  42.  
  43. 100%[======================================================================================================================>] 4,005,432 92.6K/s in 30s

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.