Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Send tweets from appengine + python

I'm looking to send tweets from a small app I'm building for the appengine, but can't quite understand how the whole oAuth and all that works.

I have seen from some very basic examples in here (which didn't work for me) to more elaborated examples using tweepy. I've also been to tweepy samples, and found some useful stuff in there, but nothing that really got me going for anything.

I think I'm finding too complex examples and am a bit worried about re-inventing the wheel.

I basically have some text that is generated by another application, and I wanna pass this text and tweet it from a twitter account.

Is there any simple way of doing that? In the past I've done it with basic authentication, but I know it's no longer available.

like image 368
Marcos Placona Avatar asked Feb 26 '26 10:02

Marcos Placona


1 Answers

Perhaps see if any of the other Python Twitter libraries are easier to wrap your mind around?

For instance, python-twitter has 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!')
like image 91
Amber Avatar answered Mar 02 '26 01:03

Amber



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!