Follow these simple steps I suppose that you have a twitter account, if you do not have twitter account then create a new account.
1. Open http://apps.twitter.com
After opening apps.twitter click on Create New App
You can put some random URL into website
Consumer key ************************* Consumer Secret(API Key) ************************
5. After getting information scroll down and click on Create My access token* in Your access token section
-
consumer_key = '********'
-
consumer_secret = '***********'
-
access_token = '************'
-
access_token_secret = '**********'
Fill your real information into the python script and run...