Looking for an Automation Tool..

PervBox

Newbie
Joined
Jan 17, 2015
Messages
31
Reaction score
20
Hi,

I'm looking for a bot to post to twitter automatically for me throughout the day.
Specifically what I need is somethng that will do this at the very minimum:

1. Select an image from a folder full of images to be posted.
2. Chose a message at random from a list of pre-defined messages
3. Chose an URL at random from a list of pre-defined URLs
4. Post complete message to twitter
5. Delete picture from folder so it isn't re-used.
6. Wait X seconds and repeat with a new picture.

I've got most of my social networks connected so once I get something on twitter, it goes to all the rest anyway. All I need now is something to do the posting on my behalf so I can concentrate on other things.

If there's no such thing available, anyone know how much it'll be to get something simple like this coded up?
I can't imagine it would take a seasoned coder in this sort of area too long :/

Thanks!
 
Did you try any of the twitter tools in this forum and outside yet. I know there is a free automation plugin for wordpress.
 
I can do this for you but it would cost you. Add me on skype to talk, abrink61 (please specify your BHW username)
 
something like this will do the job, you would just need to bulk upload your images and add image url to the end of each tweet, and set up a cron for every x amount of mins

Code:
<?php
require_once('twitteroauth.php');


$consumer_key = "yourkey";
$consumer_secret = "yoursecret";
$access_key = "youraccess key";
$access_secret = "your secret";


$lines = file ("/home/user/public_html/tweets.txt");


date_default_timezone_set('America/New_York');
$tweetContentDate = date('m/d/Y h:i:s a', time());


srand ((double)microtime()*1000000);


$tweetContent = $lines[array_rand ($lines)];


$tweet = array('status' => $tweetContent);


$status = $tweetContent;


if ($status) {
 
    $connection = new TwitterOAuth ($consumer_key ,$consumer_secret , $access_key , $access_secret );
 
    $resultArray = $connection->post('statuses/update', $tweet);


    if ($connection->http_code == 200) {
        error_log('Tweeted: '.$tweetContent." on ".$tweetContentDate."\n", 3, "tweeterErrors.log");
    } else {
        error_log('Error posting to Twitter: '.$resultArray->http_code." on ".$tweetContentDate."\n", 3, "tweeterErrors.log");
    }


echo $tweetContent;


}


?>

set and forget working example https://twitter.com/TopOutfits
 
Last edited:
Back
Top