https://github.com/pdxiii/latesttweetpy
Server side python script that fetches the last tweet by a given user with a given hash tag.
https://github.com/pdxiii/latesttweetpy
Last synced: 8 months ago
JSON representation
Server side python script that fetches the last tweet by a given user with a given hash tag.
- Host: GitHub
- URL: https://github.com/pdxiii/latesttweetpy
- Owner: PDXIII
- License: mit
- Created: 2014-11-17T17:02:26.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2017-09-21T10:43:26.000Z (over 8 years ago)
- Last Synced: 2025-10-09T23:06:46.794Z (8 months ago)
- Language: Python
- Homepage:
- Size: 10.7 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
latestTweet.py
==============
There was a time, when Twitter changed its API and a lot of plug ins stopped working. At this time I just wanted to display my latest tweet on my own website, but without all that Twitter branded clutter. So, I decided to write my own server sided plug in.
If you want to display your latest tweet with a specified #hashtag on a website, then this could maybe interesting for you!
### Installation
1. Head over to [Twitter Developers](https://dev.twitter.com).
2. Register yourself as developer and register a new app.
3. Look for a safe directory on your server (e.g. `/bin`).
4. Clone this repository into that directory.
5. Make sure you have [Twython](https://twython.readthedocs.org/en/latest/usage/install.html) installed
6. Open `config.json` set the parameters and save as `.config.json`.
7. Setup a cronjob, which continously runs the script e.g. `*/10 * * * * PATH_TO_YOUR_SCRIPT/latestTweet.py`.
### Dependencies
+ [Twython](https://twython.readthedocs.org/en/latest/usage/install.html) - Actively maintained, pure Python wrapper for the Twitter API.