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

How to scrape FEXP + PLIDs from client side (not server side) with get_videoinfo ?

Discussion in 'YouTube' started by Stephan Oking, Nov 6, 2013.

  1. Stephan Oking

    Stephan Oking Newbie

    Joined:
    Jul 27, 2013
    Messages:
    15
    Likes Received:
    0
    Hi everyone,

    I'm looking for a way to scrape the FEXP + PLID of a video, but not from my servers. From user directly :

    I send traffic to my script, and use the get_videoinfo URL to have the FEXP + PLID and other parameters.
    But my concern is there is, of course, a "crossdomain privacy policy" and i can't scrape the results.

    So how can i scrape the get_infovideo results from client side not server side. Any help will be very appreciated. Thanks a lot.
     
  2. Stephan Oking

    Stephan Oking Newbie

    Joined:
    Jul 27, 2013
    Messages:
    15
    Likes Received:
    0
    bump for help guys !
     
  3. umerjutt00

    umerjutt00 Jr. VIP Jr. VIP Premium Member

    Joined:
    Oct 28, 2011
    Messages:
    3,646
    Likes Received:
    1,906
    Occupation:
    Ninja
  4. Stephan Oking

    Stephan Oking Newbie

    Joined:
    Jul 27, 2013
    Messages:
    15
    Likes Received:
    0
    Seems like no one has a clue unfortunately :(
     
  5. rinor4ever

    rinor4ever Junior Member

    Joined:
    Jun 7, 2012
    Messages:
    103
    Likes Received:
    57
    ajax |
     
  6. umerjutt00

    umerjutt00 Jr. VIP Jr. VIP Premium Member

    Joined:
    Oct 28, 2011
    Messages:
    3,646
    Likes Received:
    1,906
    Occupation:
    Ninja
    Let me give you a clue on this..

    I have no idea on how to scrape them but I can tell you to analyze how YouTube generates these variables. For CPN, it is generated randomly even by the YouTube using characters from A-Z, a-z, 1-9, - and _.

    For PLID, it is just an encrypted form of the current date & time + some random characters at the end...

    How FEXP is generated... I am still trying to figure it out.

    Hope this helps.
     
  7. Stephan Oking

    Stephan Oking Newbie

    Joined:
    Jul 27, 2013
    Messages:
    15
    Likes Received:
    0
    TO => rino4ever. I've tried with Ajax... but once more no result. Have you tried it before ?

    To => umerjutt00 Thanks mate, i've seen some of your answers before on other youtube threads, and there already were pretty accurate. CPN + PLID is ok for me. I'll continue to scrape them from my server directly to the video.

    But the FEXP changes each time your scrape it... so to generate better quality views, i'm trying 1 : understand how it's generated OR 2 : scrape it directly from clients IPs and not only from my own private server IP.

    Thanks both of you.
     
  8. umerjutt00

    umerjutt00 Jr. VIP Jr. VIP Premium Member

    Joined:
    Oct 28, 2011
    Messages:
    3,646
    Likes Received:
    1,906
    Occupation:
    Ninja
    I will take a look at how the fexp is generated and will let you know...
     
  9. tb303

    tb303 Power Member

    Joined:
    Dec 18, 2011
    Messages:
    601
    Likes Received:
    280
    pretty sure same origin policy makes it impossible...would love to be proved wrong on it though :)
     
  10. Stephan Oking

    Stephan Oking Newbie

    Joined:
    Jul 27, 2013
    Messages:
    15
    Likes Received:
    0
    => Umerjutt00 : Thanks a lot mate. I truly appreciate your knowledge/help !

    => tb303 : I'm really sorry, i don't understand the mening of "same origin policy makes it impossible". Can you develop a little more plz :) (again sorry, French man here ! English can be tricky for me )
     
  11. umerjutt00

    umerjutt00 Jr. VIP Jr. VIP Premium Member

    Joined:
    Oct 28, 2011
    Messages:
    3,646
    Likes Received:
    1,906
    Occupation:
    Ninja
    Here you go mate: http://en.wikipedia.org/wiki/Same-origin_policy
     
  12. Stephan Oking

    Stephan Oking Newbie

    Joined:
    Jul 27, 2013
    Messages:
    15
    Likes Received:
    0
    Thanks again fellows. i'll work on this topic this weekend. Will take you informed on Wednesday (as soon as i got Youtube analytics infos live) !