]>
jfr.im git - z_archive/twitter.git/log
RouxRC [Mon, 4 Jan 2016 20:15:07 +0000 (21:15 +0100)]
yield Hangup and break on Stream SSLError (close #284)
Benjamin Ooghe-Tabanou [Fri, 4 Dec 2015 16:59:59 +0000 (17:59 +0100)]
Merge pull request #315 from Zearin/patch-1
Minor README.md tweaks
Zearin [Fri, 4 Dec 2015 16:32:29 +0000 (11:32 -0500)]
Minor README.md tweaks
Benjamin Ooghe-Tabanou [Mon, 23 Nov 2015 20:47:32 +0000 (21:47 +0100)]
Merge pull request #311 from hugovk/patch-1
Coverage 4.0 doesn't support Python 3.2
hugovk [Mon, 23 Nov 2015 20:12:16 +0000 (22:12 +0200)]
Use container-based infrastructure
Hugo [Mon, 23 Nov 2015 20:08:23 +0000 (22:08 +0200)]
Coverage 4.0 doesn't support Python 3.2
So use the last one that worked for 3.2.
Fixes #310.
RouxRC [Mon, 23 Nov 2015 19:49:25 +0000 (20:49 +0100)]
adapt tests to now full https twitter
Benjamin Ooghe-Tabanou [Mon, 23 Nov 2015 16:10:18 +0000 (17:10 +0100)]
Merge pull request #309 from horthy/oauth_dance
Fixes oauth2_dance when a token_filename is passed
Dex [Mon, 23 Nov 2015 15:55:24 +0000 (07:55 -0800)]
Fixes oauth2_dance when a token_filename is passed
It looks like `oauth2_dance` doesn't currently pass the
correct number of arguments to `oauth2.write_bearer_token_file`.
This results in a `TypeError`:
```
>>> cons = 'MY_KEY'
>>> sec = 'MY_SECRET'
>>> oauth2_dance(cons, sec, 'bearer.txt')
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "/Users/dex/.venv/lib/python2.7/site-packages/twitter/oauth_dance.py", line 30, in oauth2_dance
write_bearer_token_file(token)
TypeError: write_bearer_token_file() takes exactly 2 arguments (1
given)
```
This change updates `oauth2_dance` to pass both the token and the
filename to `write_bearer_token_file`.
Benjamin Ooghe-Tabanou [Tue, 15 Sep 2015 07:28:09 +0000 (09:28 +0200)]
Merge pull request #302 from hugovk/3.5
Python 3.5 is out
hugovk [Mon, 14 Sep 2015 14:57:50 +0000 (17:57 +0300)]
Python 3.5 is out
Mike Verdone [Tue, 28 Jul 2015 14:07:08 +0000 (16:07 +0200)]
Version 1.17.1
Benjamin Ooghe-Tabanou [Tue, 21 Jul 2015 07:13:30 +0000 (09:13 +0200)]
Merge pull request #299 from jessamynsmith/master
If json.loads fails, carry on without raising an exception. Fixes #298
Jessamyn Smith [Tue, 21 Jul 2015 02:49:32 +0000 (22:49 -0400)]
If json.loads fails, carry on without raising an exception. Fixes #298
RouxRC [Wed, 3 Jun 2015 14:44:30 +0000 (16:44 +0200)]
use safer media_id_string to avoid possible errors such as https://twittercommunity.com/t/the-validation-of-media-ids-failed-error-code-324/29304/34 cf #293
RouxRC [Tue, 12 May 2015 19:06:24 +0000 (21:06 +0200)]
add doc for new twitter way to send medias (close #279 )
Mike Verdone [Mon, 20 Apr 2015 19:32:42 +0000 (21:32 +0200)]
Version 1.17.0
Mike Verdone [Mon, 20 Apr 2015 19:32:34 +0000 (21:32 +0200)]
upload.twitter.com also expect v 1.1
Mike Verdone [Mon, 20 Apr 2015 19:22:35 +0000 (21:22 +0200)]
Merge pull request #287 from jessamynsmith/master
Improved error handling
I had to make a small change to get tests running on my environment. Then I added better checking on OAuth credentials, so the code doesn't fail out later with an obscure message. Finally, I brought the handling of error data in line with the handling of response data. This last does change behaviour, and if you don't want that, I can back out that change.
Jessamyn Smith [Mon, 20 Apr 2015 17:08:20 +0000 (13:08 -0400)]
Make handling of error data similar to handling of valid data, i.e. parse the json.
Jessamyn Smith [Mon, 20 Apr 2015 17:07:46 +0000 (13:07 -0400)]
If invalid values are passed for secrets, raise an exception with a helpful error message rather than allowing code to fail later.
Jessamyn Smith [Mon, 20 Apr 2015 16:49:22 +0000 (12:49 -0400)]
Compare lowercase hostnames when testing.
Mike Verdone [Tue, 7 Apr 2015 08:53:19 +0000 (10:53 +0200)]
Merge pull request #276 from superphil0/master
Update oauth_dance.py
Fixed bug for python 3.4 in oauth2_dance where response was encoded
(this works in python 2.7 because json.loads can decode bytes, but in 3.4 json.loads takes only strings!)
Mike Verdone [Mon, 9 Feb 2015 13:17:31 +0000 (14:17 +0100)]
Version 1.16.0
Benjamin Ooghe-Tabanou [Mon, 9 Feb 2015 13:00:30 +0000 (14:00 +0100)]
Merge pull request #278 from hugovk/patch-1
Update docs to reflect current Twitter API
Hugo [Mon, 9 Feb 2015 11:38:24 +0000 (13:38 +0200)]
Update docstring to match current API
Hugo [Mon, 9 Feb 2015 11:36:20 +0000 (13:36 +0200)]
Remove irrelevant example
[CI skip]
Hugo [Mon, 9 Feb 2015 07:55:19 +0000 (09:55 +0200)]
Update docs to reflect current Twitter API
https://dev.twitter.com/rest/reference/get/lists/members
Fixes #277.
[CI skip]
Philipp Omenitsch [Thu, 29 Jan 2015 15:53:35 +0000 (16:53 +0100)]
Update oauth_dance.py
Fixed bug for python 3.4 in oauth2_dance where response was encoded
(this works in python 2.7 because json.loads can decode bytes, but in 3.4 json.loads takes only strings!)
Benjamin Ooghe-Tabanou [Sun, 11 Jan 2015 02:36:27 +0000 (03:36 +0100)]
Merge pull request #273 from btidor/master
Bugfix: queries with retry=True return None when rate-limited
btidor [Mon, 29 Dec 2014 05:50:14 +0000 (00:50 -0500)]
Bugfix: queries with retry=True return None when rate-limited
Because bool is a subclass of int, isinstance(retry, int) returns True and the
decrement results in retry=0, terminating the while loop. Patches
73a242d .
Benjamin Ooghe-Tabanou [Fri, 26 Dec 2014 12:35:09 +0000 (13:35 +0100)]
Merge pull request #272 from koobs/patch-1
Add tests_require and test_suite support
Kubilay Kocak [Fri, 26 Dec 2014 02:48:03 +0000 (13:48 +1100)]
Add tests_require and test_suite support
Add tests_require and test_suite setup.py entries to enable 'test' command support.
RouxRC [Wed, 24 Dec 2014 08:13:09 +0000 (09:13 +0100)]
add test for sending multi picture tweets
can serve as an example for @ok1rig in #257
RouxRC [Wed, 24 Dec 2014 07:18:16 +0000 (08:18 +0100)]
Fix media upload crashs on python3
Should fix #257, #265 & #269, please check @sixohsix @alepg @simmons449 @ok1rig
RouxRC [Wed, 24 Dec 2014 06:45:49 +0000 (07:45 +0100)]
fix test syntax error for py3.2, note that having unicode_litterals loaded this is exactly the same thing
RouxRC [Wed, 24 Dec 2014 05:33:28 +0000 (06:33 +0100)]
uniformize python3 checker
Benjamin Ooghe-Tabanou [Wed, 24 Dec 2014 05:30:21 +0000 (06:30 +0100)]
Merge pull request #270 from bsturmfels/future
This is already what is used in util.py and old stream.py. I don't see no reason not to do so, except maybe improving it by calling it from util as in the new stream.py
Benjamin Ooghe-Tabanou [Wed, 24 Dec 2014 04:38:45 +0000 (05:38 +0100)]
Merge pull request #261 from tpltnt/master
merged, thx!
RouxRC [Wed, 24 Dec 2014 04:37:32 +0000 (05:37 +0100)]
complete typo fix from #261 by @tpltnt
Ben Sturmfels [Sat, 29 Nov 2014 23:52:11 +0000 (10:52 +1100)]
Use Six's method to determine when running under Python 3.
oauth.py guesses whether it is running under Python 3 by the existance of urllib.parse.urllib_parse and urllib.parse.urlencode. The code then uses urlencode's safe parameter if it believes it's running under Python 3. Unfortunately the guess fails when using Future, a library for writing clean Python 3 code that is backwards compatible with Python 2, since Future manipulates some builtins.
This change applies the version test that isn't confused by the use of Futures. It's the same test used by the Six library.
tpltnt [Thu, 30 Oct 2014 23:24:19 +0000 (23:24 +0000)]
tiny syntax fix
Mike Verdone [Tue, 21 Oct 2014 12:26:57 +0000 (14:26 +0200)]
Implementation of multipart/form-data that handles more imports and is more conformant
Mike Verdone [Tue, 21 Oct 2014 10:07:13 +0000 (12:07 +0200)]
Unit test for previous silly regression
Mike Verdone [Tue, 21 Oct 2014 09:57:18 +0000 (11:57 +0200)]
Fix a typo while building url.
Mike Verdone [Mon, 20 Oct 2014 22:45:37 +0000 (00:45 +0200)]
Handle media uploads to upload.twitter.com/1.1/media/upload.json
Mike Verdone [Mon, 20 Oct 2014 22:20:10 +0000 (00:20 +0200)]
Add a repl command to command line tool
Benjamin Ooghe-Tabanou [Mon, 13 Oct 2014 10:06:43 +0000 (12:06 +0200)]
Merge pull request #259 from hugovk/patch-1
Fix reference to Twitter API doc URL
Hugo [Mon, 13 Oct 2014 09:49:44 +0000 (12:49 +0300)]
Fix reference to Twitter API doc URL
Closes #258.
[CI skip]
Benjamin Ooghe-Tabanou [Sun, 5 Oct 2014 23:48:42 +0000 (01:48 +0200)]
Merge pull request #253 from bbolli/limit-retry
[RFC] Handle API rate limiting
RouxRC [Mon, 29 Sep 2014 01:07:14 +0000 (03:07 +0200)]
use user_timeline way less rate limited for tests
Benjamin Ooghe-Tabanou [Mon, 29 Sep 2014 00:15:33 +0000 (02:15 +0200)]
Merge pull request #255 from bbolli/speedup-method-for-uri
Speedup `method_for_uri()`
RouxRC [Sun, 28 Sep 2014 23:51:53 +0000 (01:51 +0200)]
oups forgot test image file
RouxRC [Sun, 28 Sep 2014 23:48:41 +0000 (01:48 +0200)]
refacto test
RouxRC [Sun, 28 Sep 2014 23:48:19 +0000 (01:48 +0200)]
add tests for update_with_media api function
RouxRC [Sun, 28 Sep 2014 22:56:05 +0000 (00:56 +0200)]
handle non unicode text status for twitpic with py2.x for coherence means
Beat Bolli [Wed, 24 Sep 2014 16:55:26 +0000 (18:55 +0200)]
Add a test for method_for_uri()
Beat Bolli [Tue, 23 Sep 2014 17:24:19 +0000 (19:24 +0200)]
Speed up method_for_uri()
Prepare a regex in advance that handles all POST APIs with a single
search() call.
RouxRC [Mon, 22 Sep 2014 18:18:17 +0000 (20:18 +0200)]
avoid any border effect
RouxRC [Mon, 22 Sep 2014 18:06:34 +0000 (20:06 +0200)]
Merge branch 'master' of github.com:sixohsix/twitter
RouxRC [Mon, 22 Sep 2014 18:06:22 +0000 (20:06 +0200)]
update img sending doc
RouxRC [Mon, 22 Sep 2014 17:56:56 +0000 (19:56 +0200)]
Fix encoding errors on text sent along with pics under py2.7
Beat Bolli [Sat, 20 Sep 2014 12:16:00 +0000 (14:16 +0200)]
Allow to set the number of retries
Beat Bolli [Thu, 18 Sep 2014 16:55:34 +0000 (18:55 +0200)]
Add documentation for retry=True
Beat Bolli [Tue, 16 Sep 2014 21:10:15 +0000 (23:10 +0200)]
Make the delay after 50x HTTP errors configurable
Beat Bolli [Tue, 16 Sep 2014 17:45:20 +0000 (19:45 +0200)]
Handle API rate limiting
Pass `retry=True` when creating the Twitter instance to handle these two
cases automatically:
- On HTTP error 429, read the `X-Rate-Limit-Reset` HTTP header and retry
after the specified time.
- On HTTP errors 502, 503, and 504, retry after 30 seconds.
Hugo [Wed, 10 Sep 2014 11:52:35 +0000 (14:52 +0300)]
Update .gitignore from https://github.com/github/gitignore
Hugo [Wed, 10 Sep 2014 11:56:22 +0000 (14:56 +0300)]
Fix 'twitter rate' for updated API
Mike Verdone [Thu, 11 Sep 2014 16:42:55 +0000 (10:42 -0600)]
Merge pull request #252 from ehershey/patch-1
Send 'length' command line option as 'count' to API
Ernie Hershey [Wed, 10 Sep 2014 20:59:23 +0000 (16:59 -0400)]
Send 'length' command line option as 'count' to API
fixed #251
Mike Verdone [Sat, 30 Aug 2014 14:39:57 +0000 (16:39 +0200)]
Merge pull request #244 from DTVD/master
Mention in README about 100% CPU usage with non-blocking mode.
Mike Verdone [Sat, 30 Aug 2014 14:23:13 +0000 (16:23 +0200)]
Revert JSON formatter change
Reventlov [Sun, 17 Aug 2014 05:37:33 +0000 (07:37 +0200)]
Cosmetic changes (identation, trailing whitespace, 80 char lines…
Reventlov [Sat, 16 Aug 2014 17:58:42 +0000 (19:58 +0200)]
Does anyone actually use python-twitter ?
Reventlov [Fri, 15 Aug 2014 21:04:14 +0000 (23:04 +0200)]
Adjusting the formatter
Reventlov [Fri, 15 Aug 2014 20:01:21 +0000 (22:01 +0200)]
Fixing the printNicely function to avoid broken output on redirections/pipe
Reventlov [Fri, 15 Aug 2014 17:45:42 +0000 (19:45 +0200)]
Reverting the change for the JSON formatter, pointless here
Reventlov [Fri, 15 Aug 2014 17:43:32 +0000 (19:43 +0200)]
Fixing RTs text (see https://dev.twitter.com/docs/entities#retweets )
Reventlov [Fri, 15 Aug 2014 15:17:38 +0000 (17:17 +0200)]
Fix the output for the json formatter
Reventlov [Fri, 15 Aug 2014 15:08:22 +0000 (17:08 +0200)]
Ugly fix for the https://github.com/sixohsix/twitter/issues/245 issue
Mike Verdone [Sat, 30 Aug 2014 14:06:49 +0000 (16:06 +0200)]
Merge pull request #226 from hugovk/master
Add coverage to tests
Mike Verdone [Sat, 30 Aug 2014 13:57:50 +0000 (15:57 +0200)]
Version 1.15.0
RouxRC [Wed, 27 Aug 2014 12:12:39 +0000 (14:12 +0200)]
format requires names fields in python2.6
RouxRC [Mon, 25 Aug 2014 00:44:24 +0000 (02:44 +0200)]
Remove printed headers of all oauth2 queries
probably a debug committed by mistake in
c2176d4e0365bb0764ff6962721053acaa1d1e39
see: https://github.com/sixohsix/twitter/commit/
c2176d4e0365bb0764ff6962721053acaa1d1e39 #diff-a11ddfeffc90fdbedb3d54d02a53bae8L63
Orakaro [Mon, 11 Aug 2014 03:09:04 +0000 (12:09 +0900)]
Update README
RouxRC [Sun, 10 Aug 2014 20:54:11 +0000 (22:54 +0200)]
fix img support for python3
RouxRC [Sun, 10 Aug 2014 20:53:41 +0000 (22:53 +0200)]
fix support of profile_image methods, also using regular post, not multipart
Archomeda [Sat, 9 Aug 2014 14:40:40 +0000 (16:40 +0200)]
Fix support for uploading non-multipart profile banner and other media
Mike Verdone [Fri, 8 Aug 2014 13:43:33 +0000 (15:43 +0200)]
Do not POST to friendships/lookup, only users/lookup and statuses/lookup
Fixes #223
RouxRC [Sun, 3 Aug 2014 13:33:32 +0000 (15:33 +0200)]
Add argparse to dependencies for python 2.6
Close #240
@sixohsix I'll let you update the version number and figure out
whether to pass to version 1.15 or 1.14.4
Benjamin Ooghe-Tabanou [Sun, 27 Jul 2014 14:05:09 +0000 (16:05 +0200)]
Merge pull request #238 from mattcen/master
Fix list URL for twitter cmdline
Matthew Cengia [Sun, 27 Jul 2014 04:30:35 +0000 (14:30 +1000)]
Fix list URL for twitter cmdline
Mike Verdone [Thu, 24 Jul 2014 23:05:49 +0000 (01:05 +0200)]
Add oauth_callback=oob to force PIN to appear
Mike Verdone [Thu, 24 Jul 2014 23:01:16 +0000 (01:01 +0200)]
Clean up documentation and README
Mike Verdone [Thu, 24 Jul 2014 22:41:24 +0000 (00:41 +0200)]
Unused import
Mike Verdone [Thu, 24 Jul 2014 22:39:28 +0000 (00:39 +0200)]
Improve OAuth2 app-only code and documentation
RouxRC [Tue, 22 Jul 2014 22:25:25 +0000 (00:25 +0200)]
add doc to send tweets with images in README + consolidate api.py/README
RouxRC [Tue, 22 Jul 2014 22:24:37 +0000 (00:24 +0200)]
fix image sending to handle both base64 images and plain bytes
Mike Verdone [Sat, 24 May 2014 10:41:21 +0000 (12:41 +0200)]
Merge pull request #227 from mponweiser/master
twitter-archiver: Option file path fixed for Windows
Hi, similar to the fix for issue https://github.com/sixohsix/twitter/issues/60, I have adapted the file path for twitter-archiver to work in Windows. Tested under Ubuntu 12.04 and Windows 7, Python 2.7.
mponweiser [Thu, 22 May 2014 17:31:21 +0000 (19:31 +0200)]
Option file path fixed for Windows