You should have twitter dev account enabled.
Create an application in your dev twitter account and get next values from there:
- consumer key
- consumer secret
- access token
- access token secret
Install tweepy
pip install tweepy
#Here you go
Place all required fields from precondition inside the code and you are ready to go.
python twitter_sample.py
Go to your twitter account and check result.