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

Expert in Api Twitter? Please!

Discussion in 'Twitter' started by irving, Jun 12, 2017.

  1. irving

    irving Newbie

    Joined:
    Apr 5, 2014
    Messages:
    39
    Likes Received:
    3
    I have been working with twitter applications, I would like to know that they recommend to avoid the suspension of the applications, because this usually happens however in many cases has not had problems, but in others yes.

    When you handle many accounts (over 100) and are automated to tweet constantly, then the problems begin. I would like to know (if possible) what the exact time limits are for retweets, favs, follows, unfollows and tweets from Api.

    If there is any expert in twitter api that answers this thread so that we speak, that you put your skype please.
     
  2. leer80

    leer80 Newbie

    Joined:
    Jun 13, 2017
    Messages:
    11
    Likes Received:
    3
    Gender:
    Male
    The exact time limit I do not know , however twitter has their own methods to weed out bots. So, if you time your bots to post at different times and not all at once you can keep your steady stream of posts without alerting twitter.
     
  3. irving

    irving Newbie

    Joined:
    Apr 5, 2014
    Messages:
    39
    Likes Received:
    3
    @leer80 thanks!

    Somebody else's opinion?...
     
  4. jackalope

    jackalope Newbie

    Joined:
    Jun 13, 2017
    Messages:
    26
    Likes Received:
    9
    I've worked with the twitter API a lot. Through obsessively reading their docs and my own experience, these are my reference guidelines:

    retweets/tweets: up to 100 per hour, combined (specified in their docs).

    favs: they don't directly say, but extrapolating a little from the GET requests, it's probably the same as tweets/retweets. It's not a very aggressive behavior, so it seems fairly unlikely to cause banning.

    follows: up to 1000 per day, probably more like 10 per 15 minutes (because their API rate limiting is broken into 15 minute segments), but this limit varies by account and is secret. I haven't done a lot of following and unfollowing, but I've never had trouble following up to 100ish a day. Once you're following 5000 people your total follow limit is related to your follower count and, of course, secret.

    unfollows: there's no direct guidance from twitter that I've been able to find, but I keep it to no more than 10 per 15 minutes, and even that's probably aggressive.
     
  5. irving

    irving Newbie

    Joined:
    Apr 5, 2014
    Messages:
    39
    Likes Received:
    3
    @jackalope thank you for shared your experience... I have one cuestion.. Do not delete the tweets with the Api? And if you eliminate them, how often do you do it? And if you delete them, every few minutes / seconds do it?. I would like you to send me your Skype by PM, to share experiences and talk better. Thanks!

    Somebody else's opinion?...
     
  6. jackalope

    jackalope Newbie

    Joined:
    Jun 13, 2017
    Messages:
    26
    Likes Received:
    9
    @irving I've not deleted tweets often and I couldn't find anything about it in the docs, but I would assume it follows the same pacing as tweeting/retweeting. Deleting is also not aggressive, so it's less likely to make twitter pay attention to you. I don't use skype so it's better to reply here.
     
  7. irving

    irving Newbie

    Joined:
    Apr 5, 2014
    Messages:
    39
    Likes Received:
    3
    @jackalope The twitter accounts you use to create applications are old?


    Somebody else's opinion?...
     
  8. jackalope

    jackalope Newbie

    Joined:
    Jun 13, 2017
    Messages:
    26
    Likes Received:
    9
    @irving All fairly new (a few days old) and I start really conservatively, doing just a few tweets and follows a day for the first few weeks, then rolling up to larger numbers. I haven't been banned so far, but I'm also trying to build long term accounts so it's okay if they're a little slower.
     
  9. irving

    irving Newbie

    Joined:
    Apr 5, 2014
    Messages:
    39
    Likes Received:
    3
    Please other opinion for avoid suspension apps in twitter?...
     
  10. irving

    irving Newbie

    Joined:
    Apr 5, 2014
    Messages:
    39
    Likes Received:
    3
    Hello... Please other opinion for avoid suspension apps in twitter?...
     
  11. irving

    irving Newbie

    Joined:
    Apr 5, 2014
    Messages:
    39
    Likes Received:
    3
    Please i need help, Someone who really wants to contribute to this topic?
     
  12. lion9rock

    lion9rock Registered Member

    Joined:
    Jun 14, 2015
    Messages:
    59
    Likes Received:
    5
    Hi bros,

    I need a help. Anyone knows about API searching on Twitter. I see it has a limitation but i know some guys can do it without limitation.
     
  13. irving

    irving Newbie

    Joined:
    Apr 5, 2014
    Messages:
    39
    Likes Received:
    3
    me to...
     
  14. sahilgng

    sahilgng Newbie

    Joined:
    Jul 21, 2015
    Messages:
    31
    Likes Received:
    4
    i need that too ... didnt find a way yet
     
  15. areyou

    areyou Newbie

    Joined:
    Mar 19, 2017
    Messages:
    47
    Likes Received:
    15
    Gender:
    Male
    do you use socks5 proxy?
     
  16. irving

    irving Newbie

    Joined:
    Apr 5, 2014
    Messages:
    39
    Likes Received:
    3
    @areyou We are talking about the Api, my friend ...
     
  17. areyou

    areyou Newbie

    Joined:
    Mar 19, 2017
    Messages:
    47
    Likes Received:
    15
    Gender:
    Male
    I mean if you using Twitter OAuth REST API for your applications you can use socks5 proxy. Because if you use multiple twi accounts from 1 ip it seems to be a suspicious activity. Maybe i misunderstood you buddy...
     
  18. irving

    irving Newbie

    Joined:
    Apr 5, 2014
    Messages:
    39
    Likes Received:
    3
    @areyou Excuse me, I was the one who misunderstood you. Could it be if it is so nice to show some example of php code to see how it connects with Proxy and the Api? I would really apreciate it...
     
  19. areyou

    areyou Newbie

    Joined:
    Mar 19, 2017
    Messages:
    47
    Likes Received:
    15
    Gender:
    Male
    np. this lib will helps you:

    https://github.com/abraham/twitteroauth

    here you can find code examples to use HTTP proxy in 'Proxy' section:

    https://twitteroauth.com/

    if you need to use socks5 proxy try connect like this:

    Code:
    $connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, $access_token, $access_token_secret);
    $connection->setProxy([
       'CURLOPT_PROXY' => '127.0.0.0',
       'CURLOPT_PROXYUSERPWD' => 'user:password', // or leave blank if no auth
       'CURLOPT_PROXYPORT' => 8080,
       'CURLOPT_PROXYTYPE' => CURLPROXY_SOCKS5, // change type of proxy. default is CURLPROXY_HTTP
    ]);
    
    if this code not affect to change proxy type look in 444 line of TwitterOAuth.php class and change:

    https://github.com/abraham/twitteroauth/blob/bb245253d41cb9a170a43f92021774f67efe599a/src/TwitterOAuth.php#L444

    $options[CURLOPT_PROXYTYPE] = CURLPROXY_SOCKS5;

    maybe it will help you to use multiple twi accs&apps without suspension
     
  20. areyou

    areyou Newbie

    Joined:
    Mar 19, 2017
    Messages:
    47
    Likes Received:
    15
    Gender:
    Male

    if you using your own lib to connect twi api you can add proxy setting to your CURL function like this:

    Code:
      curl_setopt($ch, CURLOPT_PROXY, trim($proxy)); // ip
      curl_setopt($ch, CURLOPT_PROXYTYPE, 7); // scoks5 type
      curl_setopt($ch, CURLOPT_PROXYUSERPWD,'user:password');
      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 5);  
      curl_setopt($ch, CURLOPT_HEADER, 0);          
      curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);  
      curl_setopt($ch, CURLOPT_ENCODING, "");        
      curl_setopt($ch, CURLOPT_USERAGENT, $uagent); //UA
      curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
      curl_setopt($ch, CURLOPT_TIMEOUT, 5);  
      curl_setopt($ch, CURLOPT_MAXREDIRS, 10);
    
    https://stackoverflow.com/questions/13444738/how-to-use-a-socks-5-proxy-with-curl
    https://stackoverflow.com/questions/39453158/how-to-use-curl-php-with-socks-5