mirror of
https://github.com/thewesker/greptweet.git
synced 2025-12-20 12:11:05 -05:00
d78209c75d120c97d7e5a0d39f883bc367d2893e
https://dev.twitter.com/docs/api/1/get/statuses/user_timeline trim_user & include_rts don't play together
http://greptweet.com
- Uses HTML offline feature
- Authentication free, using http://dev.twitter.com/doc/get/statuses/user_timeline
- Aims to suck less by keeping lines of code low
- Encourage folks to use
fetch-tweets.shthemselves and get into shell ;) - Dependencies: curl, libhtml-parser-perl (to decode HTML entities), xmlstarlet, coreutils, PHP
- Look and feel mostly by http://twitter.github.com/bootstrap
- Please review and comment on the code!
Known limitations
- API only allows 3200 tweets to be downloaded this way :((
- 150 API limit on the server ... (so clone it and use it yourself!)
- 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/u/webconverger/tweets.txt | head -n4
TODO
- Nail these bugs
Shell script feedback on the Web works by disabling Apache's mod_deflate !
http://stackoverflow.com/a/9022823/4534
There is a problem whereby if the page is killed whilst fetching, the lock isn't cleared then and there because trap does not seem to work.
Make sure your httpd does utf8 all the time:
AddDefaultCharset utf-8
Languages
PHP
42%
JavaScript
21.8%
Shell
16.8%
HTML
6.6%
Dockerfile
5%
Other
7.8%
