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

can i get list of 500,000 followers with php curl?

Discussion in 'PHP & Perl' started by ebraheeemz, Jan 1, 2014.

  1. ebraheeemz

    ebraheeemz Registered Member

    Joined:
    Oct 13, 2013
    Messages:
    58
    Likes Received:
    2
    Location:
    Jordan
    Hi
    i want to get list of followers for a specific person, that person have 500,000 followers
    can i make this with php curl without twitter api,
    if not, how to do this with twitter api
    and how many time this should take??
    thank you
     
  2. barigain

    barigain Junior Member

    Joined:
    Aug 23, 2012
    Messages:
    100
    Likes Received:
    12
    Hi,
    Twitter doesn't allow to get more than 75000 followers in one request.

    You can persist the cursor between calls. They are stable for the user you're querying on behalf of. If a user has more followers/followings than you can fetch in a single rate limit window, wait for the current window to roll over to the next and resume from the cursor you stored.
     
    • Thanks Thanks x 1
  3. Tensegrity

    Tensegrity Jr. VIP Jr. VIP Premium Member

    Joined:
    Apr 22, 2009
    Messages:
    1,823
    Likes Received:
    968
    Since twitter is javascript based i would be surprised if you could scrape it with curl alone.
     
  4. ebraheeemz

    ebraheeemz Registered Member

    Joined:
    Oct 13, 2013
    Messages:
    58
    Likes Received:
    2
    Location:
    Jordan
    oh my friend, i don't know yet if this possible but if you look at these urls, every url give you 20 followers
    but when i go to access it via curl, i can't login

    https://twitter.com/php_net/followe...features=1&include_entities=1&is_forward=true

    https://twitter.com/php_net/followe...features=1&include_entities=1&is_forward=true

    but how to login, there is hidden field name=>authenticity_token
    its changed every time
    id make tow curl requests, the first just to get this field, and the last to make login, but don't work with me
    if you have any idea thank you

    sorry my english is bad
     
  5. barigain

    barigain Junior Member

    Joined:
    Aug 23, 2012
    Messages:
    100
    Likes Received:
    12
  6. ebraheeemz

    ebraheeemz Registered Member

    Joined:
    Oct 13, 2013
    Messages:
    58
    Likes Received:
    2
    Location:
    Jordan