1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Sniff youtube video length

Discussion in 'YouTube' started by ldg2002, Aug 15, 2012.

  1. ldg2002

    ldg2002 Registered Member

    Joined:
    Jun 5, 2012
    Messages:
    66
    Likes Received:
    6
    Home Page:
    Ehy guys, i'm working on my views bot, i'm on c#, theres any way to sniff the length of a video maybe through a webbrowser control (without third party software like fiddler)?
    Thank you guys!
     
  2. -ReX-

    -ReX- Power Member

    Joined:
    Apr 26, 2012
    Messages:
    707
    Likes Received:
    274
    Location:
    Manly, Australia
    I know there is a way, I have a scraper that does it. No idea of the code though.
     
  3. ldg2002

    ldg2002 Registered Member

    Joined:
    Jun 5, 2012
    Messages:
    66
    Likes Received:
    6
    Home Page:
    I know it's a difficult thing to achieve, but if I can't, every time I have to use a program like fiddler to see the length of the video. if you look up gdata.youtube I can find the length in seconds, but is unhelpful.
     
  4. willo556

    willo556 Guest

    If you're trying to do the HTML5 mobile views, give up now because you'll get 1-100 views and then be upset because you've spent ages on a bot.
     
  5. ldg2002

    ldg2002 Registered Member

    Joined:
    Jun 5, 2012
    Messages:
    66
    Likes Received:
    6
    Home Page:
    thanks willo556, but for now I can get 600/800 views on a video per day, with public proxies, tomorrow I'll buy 500/1000 private proxies.
    if i can get 600/800 with about 50 elite public proxies, i think that with 500/1000 private proxies i can get much more. thanks anyway
     
  6. ldg2002

    ldg2002 Registered Member

    Joined:
    Jun 5, 2012
    Messages:
    66
    Likes Received:
    6
    Home Page:
    this is an example
    1.PNG 2.PNG
     
    • Thanks Thanks x 1
  7. willo556

    willo556 Guest

  8. ldg2002

    ldg2002 Registered Member

    Joined:
    Jun 5, 2012
    Messages:
    66
    Likes Received:
    6
    Home Page:
    hey! I tried to find an alternative to elite proxies but nothing to do, are the only ones that work, the problem is that they are very small amounts and most of them come from China (75% / 90%), checking the statistics no view comes from china. I tried the socks proxies but also nothing to do. if you have any advice I I listen to it with pleasure! :D thank you!
     
  9. ldg2002

    ldg2002 Registered Member

    Joined:
    Jun 5, 2012
    Messages:
    66
    Likes Received:
    6
    Home Page:
    :D remove the elite proxies that come from china, they doesn't work!
     
  10. abs007

    abs007 Junior Member

    Joined:
    May 16, 2010
    Messages:
    168
    Likes Received:
    76
    wow - are you waiting the video length for it to get counted as a view ?

    thanks
     
  11. skrode

    skrode Junior Member

    Joined:
    Nov 13, 2011
    Messages:
    103
    Likes Received:
    16
  12. phatzilla

    phatzilla Supreme Member

    Joined:
    Apr 9, 2009
    Messages:
    1,366
    Likes Received:
    1,017
    i believe the videofiles metadata contains the proper length (with decimals). been a while though
     
  13. skrode

    skrode Junior Member

    Joined:
    Nov 13, 2011
    Messages:
    103
    Likes Received:
    16
    what do you need decimals for if its presented in seconds? ie. 181
     
  14. playerb

    playerb Junior Member

    Joined:
    Aug 25, 2010
    Messages:
    116
    Likes Received:
    54
    if you dont mind grabbing the video file header, this works great
     
  15. ldg2002

    ldg2002 Registered Member

    Joined:
    Jun 5, 2012
    Messages:
    66
    Likes Received:
    6
    Home Page:
    unfortunately is not enough the length in seconds, we need the length with three decimal places, in this case representing the milliseconds
     
  16. ldg2002

    ldg2002 Registered Member

    Joined:
    Jun 5, 2012
    Messages:
    66
    Likes Received:
    6
    Home Page:
    I tried to do an experiment.
    if I take the header of the video, for example: "**** :/ / oo---preferred---mil01s10---v24---lscache8.c.youtube.com/videoplayback? upn = *** etc. ** ... "I find that "Content-Length: 5398765"
    if divide this value by the number of seconds in a day, ie 60 * 60 * 24 = 86400 the result is 62.48 *******
    in the request s.youtube.com I discover the value len = 61.1
    I tried to divide the bytes by 1024 and then the calculation becomes 5398765/1024 = 5272.2314453125 / 8.6400 = 61.0211972837095
    close but not quite ...
     
  17. phatzilla

    phatzilla Supreme Member

    Joined:
    Apr 9, 2009
    Messages:
    1,366
    Likes Received:
    1,017
    your 'experiment' makes no sense at all, lol.
     
    • Thanks Thanks x 1
  18. Adam Rock

    Adam Rock Senior Member

    Joined:
    May 13, 2010
    Messages:
    1,069
    Likes Received:
    248
    Location:
    /home/
    Miliseconds is important... and when editing videos can go into more accurate numbers that go past miliseconds...
     
  19. playerb

    playerb Junior Member

    Joined:
    Aug 25, 2010
    Messages:
    116
    Likes Received:
    54
    thats not the header of the video file, that's the header of the http server response :p