Looking For Someone To Code A "Simple" Twitter Program

Status
Not open for further replies.

TermsB

Senior Member
Joined
May 19, 2009
Messages
1,078
Reaction score
741
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:
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:[email protected]/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);
}

?>
 
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:
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).
 
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:
 
You don't need to run the php command line...

From the regular command line simply type...

php follow.php
 
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:
You don't need to run the php command line...

From the regular command line simply type...

php follow.php

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);
 
Hey is this thing still working? I would try it myself, but at the moment i can't access my server.
 
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
 
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.
 
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.
Well i am waiting for somone to offer me some inciative to do it :D
 
Hey is this thing still working? I would try it myself, but at the moment i can't access my server.

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

It works perfectly with just the one change I said. Ended up getting 600-900 adds a day when I used to use it.
 
Status
Not open for further replies.
This thread has been auto closed due to the forum's thread age policy. Read more.
Back
Top