[Tutor] tweeting from python

ingo ingo at ingoogni.nl
Mon May 27 02:06:18 EDT 2019


On 26-5-2019 16:59, nathan tech wrote:
> Hi there,
> 
> I was wondering if anyone had some tips that might direct me to answers 
> to this problem:
> 
> I have a program which one downloads to your computer, and you install.
> 
> Then, I want to add into this program a share button.
> 
> This share button would send a tweet to your twitter saying, "I am 
> watching episode x of podcast y using program z, check it out at 
> programurl."
> 
> 
> Now, I think I am looking at tweepy for this, maybe oauth2, but all the 
> tutorials on google are for creating one use apps.
> 

Nathan,

you may want to give twython a look
https://github.com/ryanmcgrath/twython it has Oauth etc. There are
tutorials for writing twitter bots with it that you could adapt to your
purpose, for example:
https://geekswipe.net/technology/computing/code-python-twitter-bot-in-ten-minutes/

Ingo


More information about the Tutor mailing list