Monitors a Twitter stream and saves off any tweet that is deleted.
This repo has both the cloner (deletethattweet.rb) and a twitter bot (ideletedthat.rb).
Both require an Twitter app be created and auth tokens be generated.
The twitter bot is the only one that requires read/write
privs.
~~ Clean up happens everywhere but the deleted tweets. (text and images/deleted) ~~ ~~ The images can get to 1 MB or more so depending on your followers this could ~~ ~~ fill up your hard driver quite quickly. ~~
sudo apt-get install beanstalkd libsqlite3-dev build-essential
You then need to edit the /etc/default/beanstalkd
config file. Uncomment #START=yes
and I would recommend only listening locally on 127.0.0.1
gem install twitter sqlite3 backburner screencap --no-rdoc --no-ri
On Kali Linux there is an issue where the screencap gem can't identify the platform. If you find a fix, please post an issue.
Under the #Twitter Config
comment you need to supply ckey, csec, akey, and asec.
Should be as simple as: ruby deletethattweet.rb
, make sure you have a few workers to handle the screenshots.
Deleted Tweets Archiver v0.2
Key:
'.' = Tweet recieved
'!' = Screenshot taken
'_' = Checking old tweet
'D' = Deleted tweet found!
'X' = Couldn't take screenshot, user is protected
'V' = Discontinued tracking hour old tweet
'T' = Talking to Twitter timed out
'R' = Rate limit hit
Only thing should need configuring is the beanstalk config if it's changed.
Just ruby dtt_worker.rb &
to toss it into the background. I would suggest running a few.
Same with DeleteThatTweet, you need to configure the Twitter API variables but that should be about it. ruby ideletedthat.rb