Youtube Demo:
- Setup a new application for your account on http://apps.twitter.com
- You will want to setup a read/write application
- Give it a name and a URL
- Twitter will give you 4 pieces of info you need
- Consumer Key
- Consumer Secret
- Access Token
- Access Token Secret
- You can find all these tokens and secrets under the Keys and Access Tokens Tab on twitter.
- Install the Python Twitter library using easy_setup
- Head to a command prompt and run: easy_install.exe twitter
- If you do no have Easy Install setup then google that and get it setup today. It makes adding modules to Python a cinch.
- Write the script
- Using your secret tokens and keys and your newly installed twitter module. Write a script like this.
Using python twitter library to post to twitter: https://t.co/LlzyPf7GgK. Pretty slick. Blog post forthcoming.
— thejoestory (@thejoestory) October 23, 2014
0 comments:
Post a Comment