A PHP library that provides an incredibly easy way to access Twitter data as JSON or RSS feed by URL or standard CLI syntax.
A PHP library that provides an incredibly easy way to access Twitter data as JSON, pretty printed JSON, or RSS feeds by URL or standard command line syntax. The Tweetledee files include caching to avoid exceeding the Twitter API v1.1 rate limits (see caveats in the documentation!).
As of May 2023 users report that the request on the v1 twitter API don't work anymore so Tweetledee is now dead.
cache_interval
URL parameter (with a value in seconds). Great big thanks to Christian Varga (@levymetal) for his contributions to this update! The non-cached versions of the files from v0.3.6 have been renamed with an appended _nocache
(e.g. userrss.php
> userrss_nocache.php
) for anyone who would like to implement their own caching.$TLD_JS = 1
in the file to activate this capability.-q
and for multiple character parameters use long switches --user
.listsrss.php
, JSON listsjson.php
, pretty printed JSON listsjson_pp.php
You will need the following:
Access via URL: PHP version 5.3 or higher
Access via command line: PHP version 5.3 or higher
libcurl installed (provides cURL - http://curl.haxx.se/libcurl/)
A Twitter application account from which you will obtain the:
Open the file on the path tweetledee > tldlib > keys > tweetledee_keys.php in any text editor and enter the information that you obtained from your Twitter app in the corresponding fields. Leave the single quotes around the alphanumeric strings that you enter.
Upload the 'tweetledee' directory (that is located in the directory where this README file resides) to the public facing directory on your web server. On many servers, this is the public_html directory
Kick the tires with the following test (it gives you a user timeline RSS feed for your account): http://[yourdomain]/tweetledee/userrss.php
That was easy... Go crazy, be good, have fun.
favoritesrss.php
] + [favoritesrss_nocache.php
]homerss.php
] + [homerss_nocache.php
]listsrss.php
] + [listrss_nocache.php
]userrss.php
] + [userrss_nocache.php
]searchrss.php
] + [searchrss_nocache.php
]favoritesjson.php
] + [favoritesjson_nocache.php
]homejson.php
] + [homejson_nocache.php
]listsjson.php
] + [listsjson_nocache.php
]userjson.php
] + [userjson_nocache.php
]searchjson.php
] + + [searchjson_nocache.php
]favoritesjson_pp.php
] + [favoritesjson_pp_nocache.php
]homejson_pp.php
] + [homejson_pp_nocache.php
]listsjson_pp.php
] + [listsjson_pp_nocache.php
]userjson_pp.php
] + [userjson_pp_nocache.php
]searchjson_pp.php
] + [searchjson_pp_nocache.php
]If you find a bug, please post it as a new issue on the GitHub repository with this information in your report.
Looking for support? Check this page.
If you would like to contribute to the project, have at it. Fork the Tweetledee project, include your changes, and submit a pull request back to the main repository.
MIT License - see the LICENSE.txt file in the source distribution