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

Looking For Someone To Code A "Simple" Twitter Program

Discussion in 'Hire a Freelancer' started by TermsB, Jun 11, 2009.

  1. TermsB

    TermsB Senior Member

    Joined:
    May 19, 2009
    Messages:
    1,076
    Likes Received:
    734
    Location:
    USA
    I'll keep this short. I am looking for someone who can code me a program that I would be able to load a list of Twitter user names into and it would add each of them. It wouldn't need to be able to handle a large list, 100~ would be fine. Post, PM or message me on aim if interested so we can discuss it more.
     
    Last edited: Jun 11, 2009
  2. 4alllifestyles

    4alllifestyles Junior Member

    Joined:
    Dec 3, 2008
    Messages:
    170
    Likes Received:
    98
    Sigh....

    I'll take $50 from everyone who likes the following PHP Script...

    Usage is simple.. Create a plain text file with the usernames you want to follow on twitter... And name this file follow.txt

    Put follow.txt and the following (name it follow.php) php script in the same directory

    Edit the script and replace username:password with your username:password and save the file.

    Then cd to that directory and enter
    Code:
    php follow.php
    It'll follow everyone in the follow.txt file up to your twitter API limit. Don't get carried away with this gang, it'll get you banned if you abuse it.



    Code:
    <?php
    // curl twitter follow script
    
    set_time_limit(3600);
    
    function follow($username)
    {
    $url = "http://username:password@twitter.com/friendships/create/$username.json";
    
    if (!$curld = curl_init()) {
    echo "Could not initialize cURL session.\n";
    exit;
    }
    
    echo $url;
    if (!$curld = curl_init()) {
    echo "Could not initialize cURL session.\n";
    exit;
    }
    
    curl_setopt($curld, CURLOPT_GET, true);
    curl_setopt($curld, CURLOPT_URL, $url);
    curl_setopt($curld, CURLOPT_HEADER, false);
    curl_setopt($curld, CURLOPT_RETURNTRANSFER, true);
    $output=curl_exec($curld);
    
    //echo "Received data: \n\n$output\n\n";
    
    $pile=json_decode($output,true);
    return $pile;
    
    }
    
    $handle = @fopen("follow.txt", "r");
    if ($handle) {
    while (!feof($handle)) {
    $users[] = fgets($handle, 4096);
    }
    fclose($handle);
    }
    
    foreach($users as $key=> $value){
    $user=ereg_replace("\n","",$value);
    $result=follow($user);
    print_r($result);
    }
    
    ?>
     
    • Thanks Thanks x 3
  3. TermsB

    TermsB Senior Member

    Joined:
    May 19, 2009
    Messages:
    1,076
    Likes Received:
    734
    Location:
    USA
    I suppose now would be as good of time as any for me to learn how to use PHP scripts. *facepalm* Thank you though 4alllifestyles, if I can get it working I'll definably though some money your way.
     
    Last edited: Jun 11, 2009
  4. 4alllifestyles

    4alllifestyles Junior Member

    Joined:
    Dec 3, 2008
    Messages:
    170
    Likes Received:
    98
    No Need to throw money... It's easy, if you've got a linux box it'll work in a heartbeat for you. You don't have to know php.. just have it installed on your system (there's a windows version too.. But I don't use Windows so I've never tried it).
     
  5. TermsB

    TermsB Senior Member

    Joined:
    May 19, 2009
    Messages:
    1,076
    Likes Received:
    734
    Location:
    USA
    I have no idea what I am doing wrong. I have PHP installed. I know how to work normal command lines, when I launch the PHP Command Line and enter any command it doesn't seem to do anything at all. Ha, I feel like I'm 10 again. :rolleyes:
     
  6. 4alllifestyles

    4alllifestyles Junior Member

    Joined:
    Dec 3, 2008
    Messages:
    170
    Likes Received:
    98
    You don't need to run the php command line...

    From the regular command line simply type...

    php follow.php
     
  7. the_demon

    the_demon Jr. Executive VIP

    Joined:
    Nov 23, 2008
    Messages:
    3,177
    Likes Received:
    1,563
    Occupation:
    Search Engine Marketing
    Location:
    The Internet
    I have a cracked twitter bot (hand cracked :: TwitterBlasterPro) so no viruses and a list of over 20,000+ user id's. If anyone is interested just let me know.

    ADVICE: While the php script is not a bad idea it will surely get you banned quick!!!
    Especially without proxies, time limits, etc. Any simple detection techniques (ex: behavioral, or detection of page loads, etc) will catch it.

    @4alllifestyles: I would like to personally thank you at that was seriously cool of you to make the script for the community and not trying to knock you... Like you said your script is perfect if used in moderation. Repped & Thanked
     
    Last edited: Jun 11, 2009
  8. TermsB

    TermsB Senior Member

    Joined:
    May 19, 2009
    Messages:
    1,076
    Likes Received:
    734
    Location:
    USA
    I did get the script working but it needed a change from GET to POST on Line 21. Much thanks, and sorry for your troubled in helping me.

    Code:
    curl_setopt($curld, CURLOPT_POST, true);
     
  9. prozium

    prozium Newbie

    Joined:
    Mar 31, 2009
    Messages:
    48
    Likes Received:
    12
    Hey is this thing still working? I would try it myself, but at the moment i can't access my server.
     
  10. risefromdeath

    risefromdeath Power Member

    Joined:
    Jul 1, 2009
    Messages:
    650
    Likes Received:
    107
    well i dont want to offened the op..but i am not sure this script will work..as far as i know twitter api create freinds requests accepts POST method not GET.
    i can code such scripts..let me know if anyone interested.
    thanks
     
  11. prozium

    prozium Newbie

    Joined:
    Mar 31, 2009
    Messages:
    48
    Likes Received:
    12
    Well I'm sure that if you code a twitter following script it would be greatly appreciated, I think that i will test this script tonight and will report if it works. There are a lot of twitter changes and maybe they will affect the script.
     
    • Thanks Thanks x 1
  12. risefromdeath

    risefromdeath Power Member

    Joined:
    Jul 1, 2009
    Messages:
    650
    Likes Received:
    107
    Well i am waiting for somone to offer me some inciative to do it :D
     
  13. TermsB

    TermsB Senior Member

    Joined:
    May 19, 2009
    Messages:
    1,076
    Likes Received:
    734
    Location:
    USA
    It works perfectly with just the one change I said. Ended up getting 600-900 adds a day when I used to use it.
     
  14. risefromdeath

    risefromdeath Power Member

    Joined:
    Jul 1, 2009
    Messages:
    650
    Likes Received:
    107
    thats what i said :D
    chage GET TO POST