Twitter Follower Stats Logger
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
blog
.gitattributes
README.md
tstats.sh

README.md

Application icon

tstats

A logging tool for Twitter Follower Stats.

This script will log your Twitter Follower statistics to a Google spreadsheet.

Prerequisites

Ruby:

sudo apt-get install ruby-dev

Twitter CLI:

gem install t

Authorize your Twitter account:

t authorize

A Google account, as the log is saved to a spreadsheet in your Google Drive.

An IFTTT account.

Connect the Maker and Google Drive channels to your IFTTT account.

Usage

cd into the tstats directory and edit the script with your IFTTT secret key, your IFTTT trigger event name and your Twitter screen name. Make the script executable with:

chmod +x tstats.sh

Then simply run it with:

./tstats.sh

If you receive a "Congratulations" message and an entry is added to your spread sheet, you can go ahead and add it to your cron to run at a predetermined time.

To have this script run every 24 hours, add this to your crontab (you may need to change the path):

42,09 * * * * /home/user/tstats/tstats.sh >/dev/null 2>&1

Trivia

This script was published on the alexloth.com blog before it was moved to this Github repository.

Licenses

The tstats script is released under the GNU GENERAL PUBLIC LICENSE Version 3.

Media files are released under the Creative Commons Attribution-NonCommercial 4.0 International license. This allows for non-commercial use as long as credit is given and that derivative works (works based on the CC licensed data) are also made available under the same license.