Jose Manuel Delicado
748d28cc71
twython/api.py: JSON error is not raised if the response content is empty and the status code is not 204. If params is not a dictionary, _transparent_params is not called
2017-10-07 18:26:21 +02:00
Phil Gyford
0ee9b76b5c
Make html_for_tweet() link a replied-to username
...
If a tweet was a reply, then when `html_for_tweet()` tried to turn
the initial "@username" into a link, there was:
> NameError: name 'sub_expr' is not defined
This is now fixed, with a test to ensure the "@username" becomes
a link.
2017-10-03 19:12:02 +01:00
Clayton A Davis
c63ed8559e
Improve error handling for api.cursor
2017-09-06 18:30:32 -04:00
Phil Gyford
b366ab55c3
Improve replacing of entities with links in html_for_tweet()
...
I've re-written the parts of `html_for_tweet()` so that it handles
all the replacements of URLs, mentions, symbols and hashtags better.
Mainly to fix #447 but it should be a little more robust generally.
Shamelessly cribbed from https://stackoverflow.com/a/25514650/250962
Passes all tests, but I haven't checked it beyond that.
Fixes #447
2017-08-22 13:49:40 +01:00
ping
c57c4bfc34
Update html_for_tweet to support extended tweets
2016-09-20 17:18:21 +08:00
Mike Helmick
2faa84629b
Merge pull request #415 from philgyford/symbols-in-html-for-tweet
...
Link $IBM-style symbols in tweets in html_for_tweet()
2016-04-30 05:33:14 -04:00
Phil Gyford
a1640f4a17
Link $IBM-style symbols in tweets in html_for_tweet()
...
Fixes #412
2016-04-22 14:22:32 +01:00
ping
99e9cebdc3
Fix issue where is_quote_status is true but there is no quoted_status
2016-03-29 10:44:04 +08:00
ping
ff4655c314
Fix html_for_tweet for pre-quote implementation tweet html
2015-10-08 11:31:07 +08:00
Karambir Singh Nain
2cca895079
Add video upload endpoint
2015-09-29 20:57:47 +05:30
Mike Helmick
00d9d6a766
Merge pull request #357 from derek-dchu/master
...
Remove redundant checking for oauth_token & oauth_token_secret
2015-09-12 07:45:57 -04:00
Mike Helmick
594f02f401
Merge pull request #390 from ping/html-for-tweet-patch-389
...
Fix html_for_tweet when a hashtag/mention is a substring of another
2015-08-18 11:38:48 -04:00
ping
62d51c7431
Add support for quoted_status in html_for_tweet()
2015-08-17 14:22:32 +08:00
ping
2ea45abb73
Fix html_for_tweet when a hashtag/mention is a substring of another
2015-08-15 19:43:59 +08:00
Mirat Can Bayrak
14526cb3df
Fixed type errror on api.py
2014-12-16 13:40:36 +00:00
ping
3cd88a09e6
Format media entities in Twython.html_for_tweet()
2014-12-02 17:54:52 +08:00
Derek Hu
8eb8c2dd55
Remove redundant checking for oauth_token & oauth_token_secret
2014-11-19 01:09:02 -05:00
Mike Helmick
e427281660
Fixes #305
2014-10-30 11:14:34 -04:00
Diego Allen
f2a535b250
Formatting fixes
2014-09-01 09:06:07 -04:00
Diego Allen
27617181b1
Fix issue #317 TwythonRateLimitError.retry_after is always None.
2014-08-31 23:14:49 -04:00
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
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
Cash Costello
25eca18da3
fixed typo in documentation of cursor()
2014-01-05 14:34:37 -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
bool.dev
feac105c85
Fixed a docstring typo in get_authentication_tokens.
2013-08-30 02:16:46 +05:30
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
0fa9b631c1
Update documentation for cursor example
...
[ci skip]
2013-07-18 23:42:52 -04:00
Mike Helmick
2dc15b7030
Fix generator test, remove search_gen from coverage
2013-07-18 20:43:02 -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
Edward Hades
4fb410fdeb
wrap requests exceptions in TwythonError class
2013-06-25 20:19:33 +02: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
Mike Helmick
756eb9060e
Update docs, add functionality to get_lastfunction_header per @devdave
2013-06-13 13:31:32 -04:00