Re: [Tutor] tweeting from python

2019-05-27 Thread ingo


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
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


[Tutor] tweeting from python

2019-05-26 Thread nathan tech
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.

This is an app that would role out to users.

I am guessing it would need to use some kind of, authorsation to allow 
it to tweet, but...

That's about as far as I can get.

Any help would be appreciated greatly.

Thanks

Nate

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor