Twitter API

5 views
Skip to first unread message

Mario

unread,
Dec 27, 2009, 3:24:20 PM12/27/09
to Django users
Good afternoon,

Is there a Twitter API that would allow me to update a Twitt via
Django? If so would you be kind enough to send me the link?

_Mario

Christophe Pettus

unread,
Dec 27, 2009, 3:26:09 PM12/27/09
to django...@googlegroups.com

On Dec 27, 2009, at 12:24 PM, Mario wrote:
> Is there a Twitter API that would allow me to update a Twitt via
> Django? If so would you be kind enough to send me the link?

Not meaning to be too terribly sarcastic, but have you tried using
Google to search for "python twitter api"? The results, I promise,
will be satisfying.

--
-- Christophe Pettus
x...@thebuild.com

Carlos Ricardo Santos

unread,
Dec 27, 2009, 3:26:15 PM12/27/09
to django...@googlegroups.com
You have python-twitter and pyscrobble.


2009/12/27 Mario <goobe...@gmail.com>

--

You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.





--
Cumprimentos,
Carlos Ricardo Santos

Carlos Ricardo Santos

unread,
Dec 27, 2009, 3:26:38 PM12/27/09
to django...@googlegroups.com
Sorry.. scrobble is Last.fm, LOL
:D

2009/12/27 Carlos Ricardo Santos <carlosric...@gmail.com>

Shawn Milochik

unread,
Dec 27, 2009, 3:26:13 PM12/27/09
to django...@googlegroups.com

Ovnicraft

unread,
Dec 27, 2009, 3:29:38 PM12/27/09
to django...@googlegroups.com


2009/12/27 Christophe Pettus <x...@thebuild.com>


On Dec 27, 2009, at 12:24 PM, Mario wrote:
> Is there a Twitter API that would allow me to update a Twitt via
> Django?  If so would you be kind enough to send me the link?

Not meaning to be too terribly sarcastic, but have you tried using
Google to search for "python twitter api"?  The results, I promise,
   ^^^^^^^^ +1

 
will be satisfying.

--
-- Christophe Pettus
   x...@thebuild.com
--

You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.





--
Cristian Salamea
CEO GnuThink Software Labs
Software Libre / Open Source
(+593-8) 4-36-44-48

Mario

unread,
Dec 27, 2009, 3:31:02 PM12/27/09
to Django users
Christophe,

Thank you for replying. Yes, I reviewed python twitter API, but the
model or the app is designed to pull down the "twitt". I would like to
upload a twitt via Django in lieu of using the Twitter front-end. Any
thoughts or suggestions?

_Mario

Tim Chase

unread,
Dec 27, 2009, 3:34:15 PM12/27/09
to django...@googlegroups.com, Mario
> Is there a Twitter API that would allow me to update a Twitt via
> Django? If so would you be kind enough to send me the link?

I've used Twyt[1] for both command-line posting and for API usage. It's
all pure python and AFAIK doesn't have any dependencies outside of stock
python. Also, (nearly?) all the API is supported, so you can do other
things like delete posts, list, block users, etc. It's all pretty
straight-forward and well documented.

-tim

[1]
http://andrewprice.me.uk/projects/twyt/

Christophe Pettus

unread,
Dec 27, 2009, 3:37:39 PM12/27/09
to django...@googlegroups.com

On Dec 27, 2009, at 12:31 PM, Mario wrote:
> Thank you for replying. Yes, I reviewed python twitter API, but the
> model or the app is designed to pull down the "twitt". I would like to
> upload a twitt via Django in lieu of using the Twitter front-end. Any
> thoughts or suggestions?

Perhaps I'm misunderstanding your issue, but the code running in
Django is just Python. There's nothing magic about it. If you want
your view functions to access Twitter via a Python Twitter API, it's
no problem to do so; you can also wrap your calls to Twitter inside of
a Model class, if that's a better fit.

Mario

unread,
Dec 27, 2009, 4:15:58 PM12/27/09
to Django users
Thank you for you suggestions. Btw, I created a mocked-up app and was
testing the functionality of the python-twitter. I read the docs as
posted at http://media.jesselegg.com/syncr/syncr.app.tweet.html.

I did a small unit testing and could see the results immediately, but
I could not create or update a twitt via Django. As I pointed out in
my early email, I want to create/update/delete a twitt in django in
lieu of the Twitter front-end.

I guess my choices at this point in time are either:

1. Twyt
2. Write a wrapper within the model.

Thanks again. _Mario

_Mario

Christophe Pettus

unread,
Dec 27, 2009, 6:42:39 PM12/27/09
to django...@googlegroups.com

On Dec 27, 2009, at 1:15 PM, Mario wrote:
> As I pointed out in
> my early email, I want to create/update/delete a twitt in django in
> lieu of the Twitter front-end.

Every reasonable Twitter API I know of (including the Python ones)
allow the full range of Twitter operations, including creating,
deleting and reading tweets, so you shouldn't need anything more
exotic to do the job.

Kevin Renskers

unread,
Dec 28, 2009, 4:11:22 AM12/28/09
to Django users
I am using http://code.google.com/p/python-twitter/ on my own Django
website, works like a charm. Are you sure you are using the API
correctly?

api.PostUpdate(username, password, 'I love python-twitter!')

By the way, updating a tweet is impossible, as Twitter doesn't support
that. You can delete and insert a new one though.


On Dec 27, 10:15 pm, Mario <goober20...@gmail.com> wrote:
> Thank you for you suggestions. Btw, I created a mocked-up app and was
> testing the functionality of the python-twitter.  I read the docs as

> posted athttp://media.jesselegg.com/syncr/syncr.app.tweet.html.

Reply all
Reply to author
Forward
0 new messages