Commit graph

282 commits

Author SHA1 Message Date
Joe Cabrera
a0fec2f004 pep8 finished 2014-07-26 11:48:36 -04:00
Joe Cabrera
6206c0b73f more pep8 fixes 2014-07-24 13:50:36 +00:00
Joe Cabrera
1455d8769a first pep8 work 2014-07-24 04:24:51 +00:00
bsbkeven
b29ce05bc8 Update endpoints.py
Added endpoint for statuses/lookup (https://dev.twitter.com/docs/api/1.1/get/statuses/lookup).
2014-05-21 11:18:59 -07:00
drevicko
144c60c3e5 Merge branch 'master' of github.com:ryanmcgrath/twython into cursor-pages
Conflicts:
	twython/api.py
2014-03-05 13:30:28 +11:00
Mike Helmick
beffba7da7 Merge pull request #284 from drevicko/non-recursive-cursor
changed cursor() from recursion to while loop
2014-02-25 15:36:57 -05:00
Cory Benfield
31ff35349c Merge headers, don't overwrite. 2014-02-23 15:07:05 +00:00
Ian
e1ee67192e fixed paramater naming as per PEP8 2014-02-21 10:29:10 +11:00
Ian
3c278efd4e Merge remote-tracking branch 'upstream/master' into cursor-pages 2014-02-21 10:24:44 +11:00
Ian
ff6502e2e9 Merge remote-tracking branch 'upstream/master' into non-recursive-cursor 2014-02-21 10:19:01 +11:00
cash
1e627f9fb1 need to use ValueError to account for different json libraries throwing different exceptions 2014-01-25 17:15:17 -05:00
cash
fa2122127c Fixes #302 simplifies json decoding and handling of errors. Adds tests. 2014-01-25 16:56:48 -05:00
wcdolphin
f8d47c13d3 Adds retry_after attribute to TwythonRateLimitError 2014-01-12 15:21:27 -08:00
Cash Costello
25eca18da3 fixed typo in documentation of cursor() 2014-01-05 14:34:37 -05:00
Mike Helmick
0937fbe929 Fix Changelog, update version
[ci skip]
2013-12-06 11:14:39 -05:00
Mike Helmick
c2068466af Update requests version, HISTORY.rst, prepare for 3.1.1 release 2013-12-05 18:15:30 -05:00
drevicko
32337fd036 changed cursor() from recursion to while loop
modified:   api.py
2013-11-08 13:03:23 +11:00
drevicko
252ded6e00 fixed recursive part for returning cursor() pages
modified:   api.py
2013-11-08 12:43:29 +11:00
drevicko
cf766311f0 added option to cursor() to yeild "pages" - ie: iterators of items for each page returned by twitter
modified:   api.py
2013-11-08 12:23:22 +11:00
Mike Helmick
638f75b93d Fixes #266 2013-10-26 19:04:36 -04:00
Remi Rampin
9bf83fd933 Don't mask TwythonStreamer exceptions
Exceptions in handlers or on_success which subclass ValueError would
previously be caught and reported as a JSON decoding problem, and
on_error() would be called (with status_code=200).
2013-10-09 14:39:45 -04:00
Mike Helmick
28b6d68b3b Update changelog, fix version number
[ci skip]
2013-09-25 16:21:49 -04:00
Mike Helmick
99067c3e6f Fixes #254 and forgot to def chunk_size 2013-09-25 13:02:52 -04:00
Mike Helmick
f6d458e758 Fixes #230 2013-09-25 12:58:40 -04:00
Kyle Kelley
37fc3e1aaa Coerce elements to strings as fallback 2013-09-05 20:45:53 -05:00
bool.dev
feac105c85 Fixed a docstring typo in get_authentication_tokens. 2013-08-30 02:16:46 +05:30
Jim Rybarski
79e2cfa78f #255 Change GET to POST for lookup_user 2013-08-23 03:47:22 -05:00
Jim Rybarski
d4f104b8a6 fixed problem where cursor stops after 10k results 2013-08-16 13:04:04 -05:00
Mike Helmick
3f69928bf6 Merge pull request #240 from jackboot7/master
Added a new param to the Twython __init__ that lets you select the authe...
2013-07-23 21:20:39 -07:00
Mike Helmick
06f5425724 Fixes #244 2013-07-20 17:46:13 -04:00
Mike Helmick
dd3727c6f5 Fixes #243 2013-07-20 17:22:07 -04:00
Mike Helmick
52e025a6a2 Merge pull request #241 from ryanmcgrath/dev/cursor
WIP: General cursor (generator) like object for Twython functions, fixes #238
2013-07-20 12:01:29 -07:00
Mike Helmick
10317bac23 Accomedate all endpoints that can be paginated with iter_mode and if needed, iter_key 2013-07-20 14:28:49 -04:00
Mike Helmick
0fa9b631c1 Update documentation for cursor example
[ci skip]
2013-07-18 23:42:52 -04:00
Mike Helmick
8efa00e9f3 Fix docstring in types.py
[ci skip]
2013-07-18 23:33:10 -04:00
Mike Helmick
2dc15b7030 Fix generator test, remove search_gen from coverage 2013-07-18 20:43:02 -04:00
Mike Helmick
c7af673ad6 Remove print 😊 2013-07-18 20:32:58 -04:00
Mike Helmick
ebd5cd47dd General cursor (generator) like object for Twython functions
* If the endpoint has an iter_mode, the function is able to be used in
Twython.cursor

* Deprecate Twython.search_gen

Fixes #238
2013-07-18 20:31:56 -04:00
Luis Alberto Santana
1f9afbe02c Added a new param to the Twython __init__ that lets you select the authentication endpoint
for your application.
2013-07-17 15:52:38 -04:30
Mike Helmick
f77d9eb523 If bad tokens for oauth 2 obtain token, 'access_token' is never in the dict 2013-06-27 22:47:07 -04:00
Mike Helmick
acdf73a04e More tests, coverage, and excluding lines from being covered
There are some lines that will never be hit in tests, excluding those
from being covered!
2013-06-27 22:37:02 -04:00
Mike Helmick
3c637ddc7d Tests and documentation 2013-06-27 19:20:43 -04:00
Mike Helmick
173adee4a6 HTML for tweet
fixes #224
2013-06-25 21:58:10 -04:00
Mike Helmick
6cab7bf95d Fix Python 3 compat
[ci skip]
2013-06-25 16:31:12 -04:00
Mike Helmick
e786e59050 Merge pull request #232 from hades/master
wrap requests exceptions in TwythonError class
2013-06-25 12:53:44 -07:00
Edward Hades
4fb410fdeb wrap requests exceptions in TwythonError class 2013-06-25 20:19:33 +02:00
Mike Helmick
26ef7b47bf client_args to modify the request 2013-06-21 18:39:45 -04:00
Oleg Anashkin
50cee5ede8 Combine two ifs into a single line 2013-06-19 17:43:45 -07:00
Oleg Anashkin
009779dda0 Refactor message handling to be more flexible
New parameter `handlers` has a list of message types for which
corresponding handlers should be called. For example, for message types
['delete', 'limit', 'disconnect'] the handlers on_delete, on_limit,
on_disconnect will be invoked if the streamed message has the
corresponding attribute. If the handler returns True then more handlers
might be invoked, otherwise message processing stops. Before all
handlers are called, special on_success handler is invoked with the same
logic: continue message handling if True is returned.

This approach maintains backwards compatibility by not breaking any
existing behaviors.
2013-06-19 13:15:52 -07:00
Mike Helmick
2af2fc00de Support for Desktop/Mobile apps, remove README.md, helpers in docs for people with non-web apps
Removed README.md, rST can highlight syntax too I found out! :)
2013-06-13 16:47:43 -04:00