Written by : BOT TWITTER
Title : Twitter auto follow
Twitter auto follow
Script ini saya dapat dari forum adsense-id hasil karya Dave Stevens yang di share oleh member daylight.Script ini digunakan utk mem-follow setiap user twitter dengan keyword tertentu.Dan sudah saya coba dan 100% bekerja dengan baik.
Ini langkah-langkahnya:
- Kopi script dibawah ini ke dalam notepad.
- Edit bagian yang berwarna merah sesuai isername dan keyword bidikan kamu.
- Save as dalam bentuk .php contoh NamaFile.php.
- Upload ke hosting kamu.
- Panggil file tersebut e.g hxxp://www.NamaDomainMilikKamu.com/NamaFile.php
- Done!
<?php
// Twitter Auto-follow Script by Dave Stevens – http://davestevens.co.uk
// Set the twitter user
$user = “YourTwitterID“;
$pass = “YourTwitterPassword“;
// Set the term keyword you want to follow (e.g. “soccer”)
$term = “computer“;
// Get already followed
$userApiUrl = “http://twitter.com/statuses/friendss.json”;
$ch = curl_init($userApiUrl);
curl_setopt($ch, CURLOPT_USERPWD, $user.”:”.$pass);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$apiresponse = curl_exec($ch);
curl_close($ch);
$followed = array();
if ($apiresponse) {
$json = json_decode($apiresponse);
if ($json != null) {
foreach ($json as $u) {
$followed[] = $u->name;
}
}
}
$userApiUrl = “http://search.twitter.com/search.json?q=” . $term . “&rpp=10000″;
$ch = curl_init($userApiUrl);
curl_setopt($ch, CURLOPT_USERPWD, $user.”:”.$pass);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$apiresponse = curl_exec($ch);
curl_close($ch);
if ($apiresponse) {
$results = json_decode($apiresponse);
$count = 20;
if ($results != null) {
$resultsArr = $results->results;
if (is_array($resultsArr)) {
foreach ($resultsArr as $result) {
$from_user = $result->from_user;
if (!in_array($from_user,$followed)) {
$ch = curl_init(“http://twitter.com/friendships/create/” . $from_user . “.json”);
curl_setopt($ch, CURLOPT_USERPWD, $user.”:”.$pass);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,”follow=true”);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$apiresponse = curl_exec($ch);
if ($apiresponse) {
$response = json_decode($apiresponse);
if ($response != null) {
if (property_exists($response,”following”)) {
if ($response->following === true) {
echo “Now following ” . $response->screen_name . “n”;
} else {
echo “Couldn’t follow ” . $response->screen_name . “n”;
}
} else {
echo “Follow limit exceeded, skipped ” . $from_user . “n”;
}
}
}
curl_close($ch);
} else {
echo “Already following ” . $from_user . “n”;
}
}
}
}
}
?>
Thus our article entitled Twitter auto follow,do you like the article hopefully this article can benefit you all.
You are reading the article Twitter auto follow and this article the permalink url is https://bottwitter.blogspot.com/2012/07/name-userapiurl-httpsearch.html Other articles you are looking for xxxxx
- Portable Acronis Backup and Recovery 11.0.17437 Workstation BootCD
- Portable Active@ File Recovery v9.5.4
- Portable Almeza MultiSet Professional 8.0.0 Multilanguage
- Portable L0phtCrack v6.0.12 - New!
- Portable Nuclear Coffee Recover Keys 6.0.2.63 Enterprise - New!
- Portable Spotmau Power Suite Golden Edition - New!
- Partition BootCD
- Portable Acronis Backup and Recovery 11.0.17437 Workstation BootCD
- Portable Spotmau Power Suite Golden Edition - New!
- Portable Emsisoft HiJackFree 4.5.0.5 Multilanguage
- Portable Rising PC Doctor 6.0.5.81 - New!
- Portable SUPERAntiSpyware Professional 5.5.1006 Multilanguage
- Portable Spotmau Power Suite Golden Edition - New!
- Partition BootCD
- Portable Almeza MultiSet Professional 8.0.0 Multilanguage
- Portable Avanquest Partition Commander v11.7893 - New!
- Portable DLL-Files.com Fixer 2.7.72.2072 Multilanguage - New!
- Portable Spotmau Power Suite Golden Edition - New!
- Portable WinZip System Utilities Suite 2.0.648.12025 Multilanguage
- Portable CopperCube 3.0.3 - New!
0 Response to "Twitter auto follow"
Posting Komentar