-
Ensure you have Python's package manager "pip" installed
On Fedora and CentOS, it's in the "python-pip" package.
-
Install the Python module dependencies using pip
$ sudo pip install twitter
-
Create the directory for holding the database and config info
$ mkdir -p ~/.twitter-stats/db
-
Copy and edit the config file
$ cp config ~/.twitter-stats/ $ vi ~/.twitter-stats/config
The Twitter authentication info in the config file needs to be updated with your own details. Info for creating your own developer account details are on https://apps.twitter.com.
Setup is now complete.
You can either run the script adhoc, or set it to run in cron.
If you want to access the SQL data directly, you can use either the sqlite3 CLI, or use a GUI tool such as [SQLite Database Browser] (http://sqlitebrowser.org).