Send tweets from appengine + python

I want to send tweets from a small application that I create for the application, but I can’t understand how the whole outout works and everything that works.

I saw from some very simple examples here (which did not work for me) more complex examples using tweepy. I was also for tweepy samples, and found useful material there, but nothing that really made me go for anything.

I think I find examples that are too complicated, and I'm a little worried about reinventing the wheel.

I basically have text that is generated by another application, and I want to transfer that text and tweet it from my Twitter account.

Is there an easy way to do this? I used to do this with basic authentication, but I know that it is no longer available.

+3
source share
3 answers

Perhaps see if there is any of the other Python Twitter libraries to fool around?

For example, it python-twitterhas a very simple interface:

>>> api = twitter.Api(consumer_key='consumer_key',
    consumer_secret='consumer_secret', access_token_key='access_token',
    access_token_secret='access_token_secret')

>>> api.PostUpdate('I love python-twitter!')
+3
source

I found this small Twitter-OAuth implementation for GAE Python some time ago and used it with great success. Basically, as a testing tool for implementing my own OAuth provider, though.

Check it out at tweetapp @github . He demonizes it here: http://twitteroauth.appspot.com .

He mentions that some time ago he did not support this code, but it still works fine anyway.

+1
source

twitteroauth.appspot.com OAuth. tweetengine UserAccount, TwitterAccount GoogleUserAccount.

+1

Source: https://habr.com/ru/post/1784193/


All Articles