twitterwatch is a data analysis and OSINT framework for Twitter. twitterwatch supports creating multiple workspaces where arbitrary Twitter users can be added and their Tweets harvested through the Twitter API for offline storage and analysis.
twitterwatch is written in Ruby and requires at least version 1.9.3 or above. To check which version of Ruby you have installed, simply run ruby --version
in a terminal.
Should you have an older version installed, it is very easy to upgrade and manage different versions with the Ruby Version Manager (RVM). Please see the RVM website for installation instructions.
twitterwatch is packaged as a Ruby gem to make it easy to install and update. To install Ruby gems you'll need the RubyGems tool installed. To check if you have it already, type gem
in a Terminal. If you got it already, it is recommended to do a quick gem update --system
to make sure you have the latest and greatest version. In case you don't have it installed, download it from here and follow the simple installation instructions.
twitterwatch uses a PostgreSQL database to store all its data. If you are setting up twitterwatch in the Kali linux distribution you already have it installed, you just need to make sure it's running by executing service postgresql start
and perhaps install a dependency with apt-get install libpq-dev
in a terminal. Here's an excellent guide on how to install PostgreSQL on a Debian based Linux system. If you are setting up twitterwatch on a Mac, the easiest way to install PostgreSQL is with Homebrew. Here's a guide on how to install PostgreSQL with Homebrew.
You need to set up a user and a database in PostgreSQL for twitterwatch. Execute the following commands in a terminal:
sudo su postgres # Not necessary on Mac OS X
createuser -s twitterwatch --pwprompt
createdb -O twitterwatch twitterwatch
You now have a new PostgreSQL user with the name twitterwatch
and with the password you typed into the prompt. You also created a database with the name twitterwatch
which is owned by the twitterwatch
user.
Some twitterwatch modules use Graphviz to generate visual graphs and other things. On a Mac you can install Graphviz with homebrew by typing brew update && brew install graphviz
in a terminal. On a Debian based Linux distro, Graphviz can be installed by typing sudo apt-get update && sudo apt-get install graphviz
in a terminal.
Some twitterwatch modules use ImageMagick to generate images. On a Mac you can install Imagemagick with homebrew by typing brew update && brew install imagemagick
in a terminal. On a Debian based Linux distro, ImageMagick can be installed by typing sudo apt-get update && sudo apt-get install libmagickwand-dev imagemagick
in a terminal.