Small python program using twitter API to send tweets. This program will be improved with new features. please check To Do List
Todo list
- send tweets.
- send images.
- get user object like (Nickname, Number of followers, followers list).
- working with followers api.
Installation:
- python2.7 Download link
- You will need to install Python's tweepy library:
Tweepy library
pip install tweepy
You may also use Git to clone the repository from Github and install it manually:
git clone https://github.com/tweepy/tweepy.git
cd tweepy
python setup.py install
How to use?
-
Download & Extract
Pytweet.zip
file. -
Edit
tweet.py
file using any code editor. -
You will need to create an app account on https://dev.twitter.com/apps
- Sign in with Twitter account (Don't use your own account)
- Create a new app account
- Modify the settings for that app account to allow read & write
- Generate a new OAuth token with those permissions
-
Following these steps will create 4 tokens that you will need to place in the
tweet.py
file:
API_KEY = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxx'
API_SECRET = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
ACCESS_TOKEN = 'xxxxxxxx-xxxxxxxxxxxxxxxxxxxxxx'
ACCESS_TOKEN_SECRET = 'xxxxxxxxxxxxxxxxxxxxxxxxx'
5.Save tweet.py
file and enjoy.
Example (Video)
Have a problem?
If you're having issues with or have questions about the program Please open new issue or contact with me via Twitter @magic_coding
Conclusion
In Conclusion hope you enjoy with this small programe and don't forget to follow me to get more free open source programes.
License:
As of October 27, 2016 Pytweet is licensed under the GPLv3+: http://choosealicense.com/licenses/gpl-3.0