tweepy.git
12 years agoUpdate to streaming read loop to use delimited stream mode.
Steve Jones [Tue, 17 Apr 2012 01:55:48 +0000 (22:55 -0300)]
Update to streaming read loop to use delimited stream mode.

1) read newlines until a digit appears
2) read rest of digits until another new line appears
3) read next status object
4) repeat

-improved speed over trunk version
-simplify loop logic
-added condition for "self.running and not resp.isclosed()" during each read-loop stage

12 years agoUpdated faster read loop code. this implementation is nearly as fast and also allows...
Steve Jones [Thu, 12 Apr 2012 04:04:43 +0000 (01:04 -0300)]
Updated faster read loop code.  this implementation is nearly as fast and also allows all tweets to fire on_status() event calls.  Previously, when the stream went silent, the most recent tweet would be stuck in the read buffer and would not fire an on_status() event call.

12 years agoBump to version 1.9
Joshua Roesslein [Sat, 17 Mar 2012 06:55:07 +0000 (01:55 -0500)]
Bump to version 1.9

12 years agoMerge pull request #149 from coderholic/patch-1
Joshua Roesslein [Fri, 9 Mar 2012 20:15:40 +0000 (12:15 -0800)]
Merge pull request #149 from coderholic/patch-1

lookup users API call doesn't require authentication.

12 years agoMerge pull request #144 from danfairs/faster-read-loop
Joshua Roesslein [Thu, 8 Mar 2012 05:00:25 +0000 (21:00 -0800)]
Merge pull request #144 from danfairs/faster-read-loop

Use a buffer rather than reading the Twitter response one byte at a time...

12 years agolookup users API call doesn't require authentication. See the documentation at https...
Ben Dowling [Wed, 29 Feb 2012 18:15:53 +0000 (18:15 +0000)]
lookup users API call doesn't require authentication. See the documentation at https://dev.twitter.com/docs/api/1/get/users/lookup and try the example: https://api.twitter.com/1/users/lookup.json?screen_name=twitterapi&include_entities=true

12 years agoProvide a hook for subclasses to do something when a response closes.
Dan Fairs [Sat, 4 Feb 2012 16:22:56 +0000 (16:22 +0000)]
Provide a hook for subclasses to do something when a response closes.

12 years agoCheck that the response is not closed each time around the loop.
Dan Fairs [Sat, 4 Feb 2012 16:22:34 +0000 (16:22 +0000)]
Check that the response is not closed each time around the loop.

12 years agoUse a buffer rather than reading the Twitter response one byte at a time. This actual...
Dan Fairs [Tue, 31 Jan 2012 15:47:38 +0000 (15:47 +0000)]
Use a buffer rather than reading the Twitter response one byte at a time. This actually respects the buffer_size option that was already there, but unused.

12 years agoMerge pull request #136 from rdennis463/geo_search
Joshua Roesslein [Thu, 29 Dec 2011 01:06:17 +0000 (17:06 -0800)]
Merge pull request #136 from rdennis463/geo_search

added the geo_search API method,

12 years agoadded the geo_search API method, no attribute:street_address support at this time
Robert Dennis [Mon, 28 Nov 2011 01:59:45 +0000 (20:59 -0500)]
added the geo_search API method, no attribute:street_address support at this time

12 years agoMerge pull request #122 from cduruk/parser
Joshua Roesslein [Sun, 13 Nov 2011 06:30:16 +0000 (22:30 -0800)]
Merge pull request #122 from cduruk/parser

Add a RawParser to access JSON objects directly

12 years agoMerge pull request #123 from nloadholtes/nloadholtes-examples
Joshua Roesslein [Sun, 13 Nov 2011 06:29:00 +0000 (22:29 -0800)]
Merge pull request #123 from nloadholtes/nloadholtes-examples

A new example of how to use oauth

12 years agoMerge pull request #124 from reuteras/httplib-fix
Joshua Roesslein [Sun, 13 Nov 2011 06:26:14 +0000 (22:26 -0800)]
Merge pull request #124 from reuteras/httplib-fix

Fix for newer version of httplib

12 years agoVersion 1.8
Joshua Roesslein [Tue, 1 Nov 2011 04:06:54 +0000 (23:06 -0500)]
Version 1.8

12 years agoOnly return cursors if needed.
Joshua Roesslein [Tue, 1 Nov 2011 04:05:31 +0000 (23:05 -0500)]
Only return cursors if needed.

12 years agoConnect to streaming API using HTTPS by default.
Joshua Roesslein [Thu, 20 Oct 2011 18:15:43 +0000 (13:15 -0500)]
Connect to streaming API using HTTPS by default.

https://dev.twitter.com/blog/streaming-api-turning-ssl-only-september-29th

12 years agoFix for newer version of httplib
Peter Reuterås [Sun, 9 Oct 2011 10:35:01 +0000 (12:35 +0200)]
Fix for newer version of httplib

httplib in python 2.7 requires that the lenght parameter is a string
and not an int.

12 years agoA new example of how to use oauth
Nick Loadholtes [Sat, 8 Oct 2011 18:49:45 +0000 (14:49 -0400)]
A new example of how to use oauth

12 years agoAdd Redis cache.
rogelio [Sat, 1 Oct 2011 05:48:21 +0000 (00:48 -0500)]
Add Redis cache.

12 years agoModified MemCacheCache to raise NotImplementedError instead of returning false data.
rogelio [Sat, 1 Oct 2011 05:40:18 +0000 (00:40 -0500)]
Modified MemCacheCache to raise NotImplementedError instead of returning false data.

12 years agoFallback to pickle module if CPickle not found.
rogelio [Sat, 1 Oct 2011 05:36:55 +0000 (00:36 -0500)]
Fallback to pickle module if CPickle not found.

12 years agoMerge pull request #113 from meetar/patch-1
Joshua Roesslein [Sat, 1 Oct 2011 05:17:52 +0000 (22:17 -0700)]
Merge pull request #113 from meetar/patch-1

Edited username in github url from joshthecoder to tweepy

12 years agoMerge pull request #114 from meetar/patch-2
Joshua Roesslein [Sat, 1 Oct 2011 05:17:27 +0000 (22:17 -0700)]
Merge pull request #114 from meetar/patch-2

Edited username in setup.py from joshthecoder to tweepy

12 years agoAdded a use_cache flag to calls. Default is true.
rogelio [Wed, 15 Jun 2011 19:23:11 +0000 (14:23 -0500)]
Added a use_cache flag to calls. Default is true.

This is to avoid caching calls like rate_limit_status which shouldn't ever be cached.

Binder was modified to only cache when the flag is true.

12 years agoAdd a RawParser to access JSON objects directly
Can Duruk [Fri, 30 Sep 2011 00:39:57 +0000 (17:39 -0700)]
Add a RawParser to access JSON objects directly

13 years agoEdited setup.py via GitHub
Peter Richardson [Tue, 26 Jul 2011 19:25:06 +0000 (16:25 -0300)]
Edited setup.py via GitHub

13 years agoEdited username in github url from joshthecoder to tweepy
Peter Richardson [Tue, 26 Jul 2011 19:23:11 +0000 (16:23 -0300)]
Edited username in github url from joshthecoder to tweepy

13 years agoMerge pull request #105 from hmarr/dms-show
Joshua Roesslein [Thu, 26 May 2011 05:50:34 +0000 (22:50 -0700)]
Merge pull request #105 from hmarr/dms-show

Added method for direct_messages/show

13 years agoAdded method for direct_messages/show
Harry Marr [Thu, 19 May 2011 09:37:12 +0000 (10:37 +0100)]
Added method for direct_messages/show

13 years agoUpdate README.
Josh Roesslein [Wed, 11 May 2011 06:07:57 +0000 (01:07 -0500)]
Update README.

13 years agoAdd Basic Authentication example.
Josh Roesslein [Wed, 11 May 2011 04:15:25 +0000 (23:15 -0500)]
Add Basic Authentication example.

13 years agoMerged pull request #99 from panisson/master.
Joshua Roesslein [Mon, 25 Apr 2011 17:14:04 +0000 (10:14 -0700)]
Merged pull request #99 from panisson/master.

Overriding stack trace on streaming.py

13 years agoThe "raise exception" is overriding the stack trace and hiding all errors, a simple...
André Panisson [Mon, 18 Apr 2011 16:57:08 +0000 (09:57 -0700)]
The "raise exception" is overriding the stack trace and hiding all errors, a simple "raise" should be fine.

13 years agoDocument installation.
Josh Roesslein [Sat, 16 Apr 2011 00:58:36 +0000 (19:58 -0500)]
Document installation.

13 years agoUpdate README
Josh Roesslein [Sat, 16 Apr 2011 00:28:10 +0000 (19:28 -0500)]
Update README

13 years agoCreate new blank sphinx docs.
Josh Roesslein [Sat, 16 Apr 2011 00:05:08 +0000 (19:05 -0500)]
Create new blank sphinx docs.

13 years agodoc -> docs
Josh Roesslein [Fri, 15 Apr 2011 23:52:08 +0000 (18:52 -0500)]
doc -> docs

13 years agoRemove old changelog file.
Josh Roesslein [Thu, 14 Apr 2011 06:16:05 +0000 (01:16 -0500)]
Remove old changelog file.

13 years agoRe-sync contributors.
Josh Roesslein [Thu, 14 Apr 2011 06:11:39 +0000 (01:11 -0500)]
Re-sync contributors.

13 years agoMerge streaming improvements from robinhouston.
Josh Roesslein [Thu, 14 Apr 2011 05:50:43 +0000 (00:50 -0500)]
Merge streaming improvements from robinhouston.

13 years agoCode style fixup.
Josh Roesslein [Thu, 14 Apr 2011 05:34:16 +0000 (00:34 -0500)]
Code style fixup.

13 years agoAdd User Streams.
AlanBell [Wed, 30 Mar 2011 19:55:24 +0000 (12:55 -0700)]
Add User Streams.

13 years ago_read_loop really didn't seem right, but somehow kinda worked. It now works when...
AlanBell [Wed, 30 Mar 2011 19:52:49 +0000 (12:52 -0700)]
_read_loop really didn't seem right, but somehow kinda worked. It now works when pointed at user streams too.

13 years agoA five-second default timeout is pretty ridiculous for streaming
Robin Houston [Sat, 5 Mar 2011 16:16:39 +0000 (16:16 +0000)]
A five-second default timeout is pretty ridiculous for streaming
searches, where Twitter will take longer than five seconds even to
send a response header.

My preferred default would be no timeout at all, but if we are to
have one then five minutes seems more reasonable than five seconds.

13 years agoApply the auth before connecting, otherwise it will fail on reconnection
Robin Houston [Sat, 5 Mar 2011 16:15:19 +0000 (16:15 +0000)]
Apply the auth before connecting, otherwise it will fail on reconnection
when using OAuth (because the nonce has been used before, and the timestamp
is no longer correct).

13 years agoChange tabs to spaces, for consistency
Robin Houston [Sat, 5 Mar 2011 15:45:55 +0000 (15:45 +0000)]
Change tabs to spaces, for consistency

13 years agoImprove the options handling in the streaming.Stream class, so that false values...
Robin Houston [Sat, 5 Mar 2011 15:41:16 +0000 (15:41 +0000)]
Improve the options handling in the streaming.Stream class, so that false values can be used. (In particular I want to be able to pass timeout=None, but one might also reasonably want to pass zero for some of the other options.)

13 years agoFixed default status parser to use user model from the model factory. This enables...
Pascal Jürgens [Fri, 17 Dec 2010 10:09:44 +0000 (18:09 +0800)]
Fixed default status parser to use user model from the model factory. This enables use of one's own user models.

13 years agoAdd support for related_result
Aaron Swartz [Sat, 5 Feb 2011 05:32:25 +0000 (23:32 -0600)]
Add support for related_result

13 years agoMerge branch 'master' of github.com:joshthecoder/tweepy
Josh Roesslein [Sat, 5 Feb 2011 05:05:43 +0000 (23:05 -0600)]
Merge branch 'master' of github.com:joshthecoder/tweepy

13 years agoadded support for count parameter in filter method
w43L [Wed, 1 Dec 2010 02:22:35 +0000 (10:22 +0800)]
added support for count parameter in filter method

13 years agoadded information about twitters discontinued basic auth support to docs
Johannes Faigle [Fri, 26 Nov 2010 13:16:39 +0000 (21:16 +0800)]
added information about twitters discontinued basic auth support to docs

13 years agoadded information about twitters discontinued basic auth support to docs
Johannes Faigle [Fri, 26 Nov 2010 13:16:39 +0000 (13:16 +0000)]
added information about twitters discontinued basic auth support to docs

13 years agoPropagate connection failure exceptions up through verify_credentials
Clay McClure [Thu, 30 Dec 2010 23:44:55 +0000 (07:44 +0800)]
Propagate connection failure exceptions up through verify_credentials

13 years agoInclude all parameters when signing request for OAuth.
Josh Roesslein [Mon, 18 Oct 2010 14:22:35 +0000 (09:22 -0500)]
Include all parameters when signing request for OAuth.

13 years agoFix an error in the Stream class.
Josh Roesslein [Mon, 18 Oct 2010 02:40:58 +0000 (21:40 -0500)]
Fix an error in the Stream class.

13 years agoFix up auth tutorial.
Josh Roesslein [Sun, 17 Oct 2010 04:34:20 +0000 (23:34 -0500)]
Fix up auth tutorial.

Closes #54

13 years agoAdd include_rts parameter to user_timeline().
Josh Roesslein [Sun, 17 Oct 2010 04:27:10 +0000 (23:27 -0500)]
Add include_rts parameter to user_timeline().

Closes #48

13 years agoUse unicode for Tweepy error messges.
Josh Roesslein [Sun, 17 Oct 2010 04:03:15 +0000 (23:03 -0500)]
Use unicode for Tweepy error messges.

Closes #38

13 years agoFix a bug in the cache code which would error when loading non-Model objects.
Josh Roesslein [Sun, 17 Oct 2010 02:58:56 +0000 (21:58 -0500)]
Fix a bug in the cache code which would error when loading non-Model objects.

13 years agoConsumer credentials must now be provided to run oauth tests.
Josh Roesslein [Sun, 10 Oct 2010 07:16:26 +0000 (02:16 -0500)]
Consumer credentials must now be provided to run oauth tests.

13 years agoMove tweepyshell script to tools folder.
Josh Roesslein [Sun, 10 Oct 2010 04:39:34 +0000 (23:39 -0500)]
Move tweepyshell script to tools folder.

13 years agoUpdate Contributors file.
Josh Roesslein [Sun, 10 Oct 2010 04:39:11 +0000 (23:39 -0500)]
Update Contributors file.

13 years agoOpen the correct type of HTTP Connection based on the scheme being used.
Josh Roesslein [Sun, 10 Oct 2010 04:06:28 +0000 (23:06 -0500)]
Open the correct type of HTTP Connection based on the scheme being used.

13 years agoRemove un-needed import and tiddy up some comments.
Josh Roesslein [Sun, 10 Oct 2010 04:03:19 +0000 (23:03 -0500)]
Remove un-needed import and tiddy up some comments.

13 years agoClean up the way we pull in stream options.
Josh Roesslein [Sun, 10 Oct 2010 04:01:30 +0000 (23:01 -0500)]
Clean up the way we pull in stream options.

Note: this may break some code that just passes this options
by position rather than keyword.

13 years agoAllow for secure streams and make sure to properly apply auth for OAuth.
Josh Roesslein [Sun, 10 Oct 2010 03:53:25 +0000 (22:53 -0500)]
Allow for secure streams and make sure to properly apply auth for OAuth.

13 years agoStream now accepts an authentication instance.
Josh Roesslein [Sun, 10 Oct 2010 03:39:38 +0000 (22:39 -0500)]
Stream now accepts an authentication instance.

It should now be possible to authenticate with
the streaming API by either using BasicAuthHandler or
OAuthHandler.

14 years agoNow push lat/lon with only two decimals after the digit, like Twitter wants
Sam Kaufman [Sun, 15 Aug 2010 20:37:00 +0000 (04:37 +0800)]
Now push lat/lon with only two decimals after the digit, like Twitter wants

14 years agoAdded filtering by locations to the streaming API.
Sam Kaufman [Wed, 16 Jun 2010 06:26:14 +0000 (14:26 +0800)]
Added filtering by locations to the streaming API.

14 years agomemcache cache
gilles [Fri, 10 Sep 2010 18:59:04 +0000 (02:59 +0800)]
memcache cache

14 years agoFix for null twitter json objects.
Jenny Loomis [Tue, 24 Aug 2010 17:55:25 +0000 (10:55 -0700)]
Fix for null twitter json objects.

Don't die while waiting for fix to twitter api issue 1823: http://code.google.com/p/twitter-api/issues/detail?id=1823

14 years agoChanged url.
Adam Miskiewicz [Fri, 21 May 2010 07:01:37 +0000 (15:01 +0800)]
Changed url.

14 years agoRuntime exception in listener no longer fails silently (Fixed issue #14).
Wayne Moore [Sun, 16 May 2010 08:45:14 +0000 (16:45 +0800)]
Runtime exception in listener no longer fails silently (Fixed issue #14).

14 years agoIgnore any arguments that are None.
Josh Roesslein [Wed, 16 Jun 2010 06:36:04 +0000 (01:36 -0500)]
Ignore any arguments that are None.

Fixes issues #33

14 years agoParser now sets source_url consistently.
Wayne Moore [Sun, 16 May 2010 08:46:03 +0000 (16:46 +0800)]
Parser now sets source_url consistently.

14 years agoTweepError was not imported in parsers.py, leading to "global name 'TweepError' is...
Guan Yang [Sun, 6 Jun 2010 18:21:34 +0000 (02:21 +0800)]
TweepError was not imported in parsers.py, leading to "global name 'TweepError' is not defined" errors

14 years agoFix for python 2.4. Release 1.7.1.
Joshua Roesslein [Tue, 25 May 2010 15:25:53 +0000 (10:25 -0500)]
Fix for python 2.4. Release 1.7.1.

14 years agoBump to version 1.7
Joshua Roesslein [Mon, 24 May 2010 03:50:36 +0000 (22:50 -0500)]
Bump to version 1.7

14 years agoRe-enable some tests.
Joshua Roesslein [Mon, 24 May 2010 03:47:30 +0000 (22:47 -0500)]
Re-enable some tests.

14 years agoDocumentation fix in oauth tutorial.
Joshua Roesslein [Mon, 24 May 2010 03:35:38 +0000 (22:35 -0500)]
Documentation fix in oauth tutorial.

14 years agoAdd additonal search() parameters supported by Twitter.
Joshua Roesslein [Mon, 24 May 2010 03:32:27 +0000 (22:32 -0500)]
Add additonal search() parameters supported by Twitter.

14 years agocatch exception for deleting _api model reference when pickling/ unpickling
Chris Kelly [Fri, 30 Apr 2010 02:24:42 +0000 (10:24 +0800)]
catch exception for deleting _api model reference when pickling/ unpickling

14 years agoFix an error in the cursor tutorial.
Joshua Roesslein [Fri, 23 Apr 2010 20:16:14 +0000 (15:16 -0500)]
Fix an error in the cursor tutorial.

Fixes issue #28

14 years agoUse 'per_page' instead of 'count' paramter for list_timeline() method.
Joshua Roesslein [Fri, 23 Apr 2010 20:09:30 +0000 (15:09 -0500)]
Use 'per_page' instead of 'count' paramter for list_timeline() method.

Fixes issue #27

14 years agoAdded friendships_incoming() and friendships_outgoing() methods.
Joshua Roesslein [Fri, 23 Apr 2010 19:58:36 +0000 (14:58 -0500)]
Added friendships_incoming() and friendships_outgoing() methods.

See dev.twitter.com documentation for more details.

14 years agoTrends methods are no longer part of the search API.
Joshua Roesslein [Fri, 23 Apr 2010 19:45:48 +0000 (14:45 -0500)]
Trends methods are no longer part of the search API.

14 years agoAdded reverse_geocode, nearby_places, and geo_id methods.
Kumar Appaiah [Sun, 18 Apr 2010 22:03:52 +0000 (17:03 -0500)]
Added reverse_geocode, nearby_places, and geo_id methods.

14 years agoAdded retweeted_by and retweeted_by_ids methods.
Joshua Roesslein [Sat, 17 Apr 2010 02:41:42 +0000 (21:41 -0500)]
Added retweeted_by and retweeted_by_ids methods.

14 years agoMerge 'jnr/master'
Joshua Roesslein [Sat, 3 Apr 2010 03:00:51 +0000 (22:00 -0500)]
Merge 'jnr/master'

14 years agoCouple of typos fixed.
James Rowe [Sat, 3 Apr 2010 02:09:42 +0000 (03:09 +0100)]
Couple of typos fixed.

14 years agoFix a recursion bug when calling API.verify_credentials()
Joshua Roesslein [Fri, 2 Apr 2010 21:00:12 +0000 (16:00 -0500)]
Fix a recursion bug when calling API.verify_credentials()

14 years agoFix an issue where 'user' parameter value was getting overridden.
Joshua Roesslein [Mon, 29 Mar 2010 14:45:42 +0000 (09:45 -0500)]
Fix an issue where 'user' parameter value was getting overridden.

This caused issues with lists_memberships() when trying to get memberships
of an user besides the authenticated one. We now only set 'user' parameter
to the authenticated user when no 'user' value is provided when calling
the API method.

14 years agotweepyshell: remove unused import
Gergely Imreh [Fri, 19 Mar 2010 14:57:41 +0000 (22:57 +0800)]
tweepyshell: remove unused import

14 years agoFIX: tweepyshell: ipython shell took original arguments
Gergely Imreh [Fri, 19 Mar 2010 14:53:24 +0000 (22:53 +0800)]
FIX: tweepyshell: ipython shell took original arguments

Previously the ipython shell kidnapped all tweepyshell input
arguments and interpreted as its own. Thus e.g. supplying
a username resulted in it trying to open a file with a name equal
to the username. This is not nice so let's put an end to it by
explicitly passing an empty arguments list.

14 years agoFIX: tests: tripple-quote error (closing quotes missing)
Gergely Imreh [Fri, 19 Mar 2010 05:00:04 +0000 (13:00 +0800)]
FIX: tests: tripple-quote error (closing quotes missing)

Placed the opening quotes to the right indentation level, and
re-added closing quotes to be able to run the tests.

14 years agoImplemented API.lookup_users()
Joshua Roesslein [Fri, 19 Mar 2010 03:38:57 +0000 (22:38 -0500)]
Implemented API.lookup_users()

This method allows you to perform a bulk lookup
of users by using their IDs or screen names.

For more info see http://apiwiki.twitter.com/Twitter-REST-API-Method:-users-lookup

14 years agoUpdate contributors and readme.
Joshua Roesslein [Fri, 19 Mar 2010 03:15:46 +0000 (22:15 -0500)]
Update contributors and readme.

14 years agotweepyshell: add support for IPython, with fallback to code.interact
Gergely Imreh [Fri, 19 Mar 2010 02:21:05 +0000 (10:21 +0800)]
tweepyshell: add support for IPython, with fallback to code.interact

IPython is a much versatile interactive shell compared to code,
use it's power if awailable.

Signed-off-by: Gergely Imreh <imrehg@gmail.com>