https://github.com/unkn0wnvariable/python-twitter
Using the Twitter API with Python (via Twython).
https://github.com/unkn0wnvariable/python-twitter
Last synced: 10 months ago
JSON representation
Using the Twitter API with Python (via Twython).
- Host: GitHub
- URL: https://github.com/unkn0wnvariable/python-twitter
- Owner: unkn0wnvariable
- License: gpl-3.0
- Created: 2018-08-05T07:04:46.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2023-08-07T15:49:25.000Z (over 2 years ago)
- Last Synced: 2025-01-22T13:52:05.740Z (12 months ago)
- Language: Python
- Homepage:
- Size: 28.3 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Python-Twitter
**Using the Twitter API with Python (via Twython).**
## Description
This started as me playing with using Twitter from the CLI of a Raspberry Pi, and expanded from there into whether I could use Python and the API to do some semi-automated management of lists. The plan was to do more, and I may well do one day, but for now I haven't had the time.
I've now decided to tidy up my code and make it public, since others may find it useful.
## Prerequisites
A great Python to Twitter API module has been created in the form of [Twython](https://github.com/ryanmcgrath/twython), so rather than spend ages trying to make my own interface I have simply used that.
You can install Twython using `pip install twython`.
There may be other Python modules I'm using which aren't part of the standard install, I'll track them down and add them here as I go.
## API Details File
I use a seperate file for my API details which, for obvious reasons, I exclude from my public repository. It therefore needs to be created and populated with your own API credentials.
The file is called TwitterAPIDetails.py and contains the following:
```Python
# Twitter API and Access keys
apiKey = ''
apiSecret = ''
accessToken = ''
accessTokenSecret = ''
```
## Disclaimer
All code provided as is without warranty of any kind, use at your own risk.