2014-01-16 16:06:12 +00:00
2013-06-12 02:12:02 +00:00
2013-07-28 18:08:06 +08:00
2013-07-14 20:52:04 +08:00
2012-08-10 18:36:10 +02:00
2013-07-14 03:58:03 +00:00
2013-07-28 18:08:06 +08:00
2013-06-12 09:14:55 +08:00
2012-01-28 14:27:14 +08:00
2013-02-09 13:31:31 +08:00
2013-07-14 20:52:04 +08:00
2014-01-16 16:06:12 +00:00
2012-10-13 20:48:47 +01:00

http://greptweet.com

Greptweet

Known limitations

  • API only allows 3200 tweets to be downloaded this way :(
  • 300 API limit using a Application only Auth bearer token (which doesn't seem to expire...)
  • Won't work on protected accounts (duh!)
  • No @mentions or DMs from other accounts

API

Fetch your tweets manually by accessing the URL:

http://greptweet.com/f/TWITTER_USERNAME

Last 4 tweets:

curl -s http://greptweet.com/u/webconverger/tweets.txt | head -n4

Getting a Bearer Token

When you clone and attempt to run this project you will notice that you are missing a secrets.php file, this file contains one setting $bearer. To create a bearer token:

  1. Create a new Twitter app.

  2. Base64 encode your key and secret separated by a colon, eg: key:secret => a2V5OnNlY3JldA==

  3. Add the result to the Authorization header:

    wget --post-data=grant_type=client_credentials
    --header='Authorization: Basic BASE64HERE'
    --header='Content-Type: application/x-www-form-urlencoded;charset=UTF-8'
    https://api.twitter.com/oauth2/token

Description
Sane twitter backup and search
Readme MIT 1,024 KiB
Languages
PHP 42%
JavaScript 21.8%
Shell 16.8%
HTML 6.6%
Dockerfile 5%
Other 7.8%