]> jfr.im git - z_archive/twitter.git/log
z_archive/twitter.git
8 years agobandaid unicode/str.encode-related crash bug master
zonidjan [Mon, 4 Apr 2016 18:00:35 +0000 (13:00 -0500)] 
bandaid unicode/str.encode-related crash bug

8 years agoadd usermode setting and perform-on-connect ability to ircbot
zonidjan [Mon, 4 Apr 2016 17:56:56 +0000 (12:56 -0500)] 
add usermode setting and perform-on-connect ability to ircbot

8 years agoMerge pull request #322 from cristovaov/patch-1
Benjamin Ooghe-Tabanou [Tue, 15 Mar 2016 22:20:20 +0000 (23:20 +0100)] 
Merge pull request #322 from cristovaov/patch-1

Fix ResourceWarning on read_bearer_toke_file func

8 years agoFix ResourceWarning on read_bearer_toke_file func
Cristovao Verstraeten [Tue, 15 Mar 2016 21:39:32 +0000 (22:39 +0100)] 
Fix ResourceWarning on read_bearer_toke_file func

This should fix the following warning when doing a unit test: ResourceWarning: unclosed file <_io.TextIOWrapper name='bearer_token' mode='r' encoding='cp1252'>

8 years agoyield Hangup and break on Stream SSLError (close #284)
RouxRC [Mon, 4 Jan 2016 20:15:07 +0000 (21:15 +0100)] 
yield Hangup and break on Stream SSLError (close #284)

8 years agoMerge pull request #315 from Zearin/patch-1
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

8 years agoMinor README.md tweaks
Zearin [Fri, 4 Dec 2015 16:32:29 +0000 (11:32 -0500)] 
Minor README.md tweaks

8 years agoMerge pull request #311 from hugovk/patch-1
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

8 years agoUse container-based infrastructure
hugovk [Mon, 23 Nov 2015 20:12:16 +0000 (22:12 +0200)] 
Use container-based infrastructure

8 years agoCoverage 4.0 doesn't support Python 3.2
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.

8 years agoadapt tests to now full https twitter
RouxRC [Mon, 23 Nov 2015 19:49:25 +0000 (20:49 +0100)] 
adapt tests to now full https twitter

8 years agoMerge pull request #309 from horthy/oauth_dance
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

8 years agoFixes 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`.

8 years agoMerge pull request #302 from hugovk/3.5
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

8 years agoPython 3.5 is out
hugovk [Mon, 14 Sep 2015 14:57:50 +0000 (17:57 +0300)] 
Python 3.5 is out

8 years agoVersion 1.17.1 twitter-1.17.1
Mike Verdone [Tue, 28 Jul 2015 14:07:08 +0000 (16:07 +0200)] 
Version 1.17.1

8 years agoMerge pull request #299 from jessamynsmith/master
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

8 years agoIf 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

8 years agouse safer media_id_string to avoid possible errors such as https://twittercommunity...
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

8 years agoadd doc for new twitter way to send medias (close #279 )
RouxRC [Tue, 12 May 2015 19:06:24 +0000 (21:06 +0200)] 
add doc for new twitter way to send medias (close #279 )

9 years agoVersion 1.17.0 twitter-1.17.0
Mike Verdone [Mon, 20 Apr 2015 19:32:42 +0000 (21:32 +0200)] 
Version 1.17.0

9 years agoupload.twitter.com also expect v 1.1
Mike Verdone [Mon, 20 Apr 2015 19:32:34 +0000 (21:32 +0200)] 
upload.twitter.com also expect v 1.1

9 years agoMerge pull request #287 from jessamynsmith/master
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.

9 years agoMake handling of error data similar to handling of valid data, i.e. parse the json.
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.

9 years agoIf invalid values are passed for secrets, raise an exception with a helpful error...
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.

9 years agoCompare lowercase hostnames when testing.
Jessamyn Smith [Mon, 20 Apr 2015 16:49:22 +0000 (12:49 -0400)] 
Compare lowercase hostnames when testing.

9 years agoMerge pull request #276 from superphil0/master
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!)

9 years agoVersion 1.16.0 twitter-1.16.0
Mike Verdone [Mon, 9 Feb 2015 13:17:31 +0000 (14:17 +0100)] 
Version 1.16.0

9 years agoMerge pull request #278 from hugovk/patch-1
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

9 years agoUpdate docstring to match current API
Hugo [Mon, 9 Feb 2015 11:38:24 +0000 (13:38 +0200)] 
Update docstring to match current API

9 years agoRemove irrelevant example
Hugo [Mon, 9 Feb 2015 11:36:20 +0000 (13:36 +0200)] 
Remove irrelevant example

[CI skip]

9 years agoUpdate docs to reflect current Twitter API
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]

9 years agoUpdate oauth_dance.py
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!)

9 years agoMerge pull request #273 from btidor/master
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

9 years agoBugfix: 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.

9 years agoMerge pull request #272 from koobs/patch-1
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

9 years agoAdd 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.

9 years agoadd test for sending multi picture tweets
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

9 years agoFix media upload crashs on python3
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

9 years agofix test syntax error for py3.2, note that having unicode_litterals loaded this is...
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

9 years agouniformize python3 checker
RouxRC [Wed, 24 Dec 2014 05:33:28 +0000 (06:33 +0100)] 
uniformize python3 checker

9 years agoMerge pull request #270 from bsturmfels/future
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

9 years agoMerge pull request #261 from tpltnt/master
Benjamin Ooghe-Tabanou [Wed, 24 Dec 2014 04:38:45 +0000 (05:38 +0100)] 
Merge pull request #261 from tpltnt/master

merged, thx!

9 years agocomplete typo fix from #261 by @tpltnt
RouxRC [Wed, 24 Dec 2014 04:37:32 +0000 (05:37 +0100)] 
complete typo fix from #261 by @tpltnt

9 years agoUse Six's method to determine when running under Python 3.
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.

9 years agotiny syntax fix
tpltnt [Thu, 30 Oct 2014 23:24:19 +0000 (23:24 +0000)] 
tiny syntax fix

9 years agoImplementation of multipart/form-data that handles more imports and is more conformant
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

9 years agoUnit test for previous silly regression
Mike Verdone [Tue, 21 Oct 2014 10:07:13 +0000 (12:07 +0200)] 
Unit test for previous silly regression

9 years agoFix a typo while building url.
Mike Verdone [Tue, 21 Oct 2014 09:57:18 +0000 (11:57 +0200)] 
Fix a typo while building url.

9 years agoHandle media uploads to upload.twitter.com/1.1/media/upload.json
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

9 years agoAdd a repl command to command line tool
Mike Verdone [Mon, 20 Oct 2014 22:20:10 +0000 (00:20 +0200)] 
Add a repl command to command line tool

9 years agoMerge pull request #259 from hugovk/patch-1
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

9 years agoFix 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]

9 years agoMerge pull request #253 from bbolli/limit-retry
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

9 years agouse user_timeline way less rate limited for tests
RouxRC [Mon, 29 Sep 2014 01:07:14 +0000 (03:07 +0200)] 
use user_timeline way less rate limited for tests

9 years agoMerge pull request #255 from bbolli/speedup-method-for-uri
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()`

9 years agooups forgot test image file
RouxRC [Sun, 28 Sep 2014 23:51:53 +0000 (01:51 +0200)] 
oups forgot test image file

9 years agorefacto test
RouxRC [Sun, 28 Sep 2014 23:48:41 +0000 (01:48 +0200)] 
refacto test

9 years agoadd tests for update_with_media api function
RouxRC [Sun, 28 Sep 2014 23:48:19 +0000 (01:48 +0200)] 
add tests for update_with_media api function

9 years agohandle non unicode text status for twitpic with py2.x for coherence means
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

9 years agoAdd a test for method_for_uri()
Beat Bolli [Wed, 24 Sep 2014 16:55:26 +0000 (18:55 +0200)] 
Add a test for method_for_uri()

9 years agoSpeed up 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.

9 years agoavoid any border effect
RouxRC [Mon, 22 Sep 2014 18:18:17 +0000 (20:18 +0200)] 
avoid any border effect

9 years agoMerge branch 'master' of github.com:sixohsix/twitter
RouxRC [Mon, 22 Sep 2014 18:06:34 +0000 (20:06 +0200)] 
Merge branch 'master' of github.com:sixohsix/twitter

9 years agoupdate img sending doc
RouxRC [Mon, 22 Sep 2014 18:06:22 +0000 (20:06 +0200)] 
update img sending doc

9 years agoFix encoding errors on text sent along with pics under py2.7
RouxRC [Mon, 22 Sep 2014 17:56:56 +0000 (19:56 +0200)] 
Fix encoding errors on text sent along with pics under py2.7

9 years agoAllow to set the number of retries
Beat Bolli [Sat, 20 Sep 2014 12:16:00 +0000 (14:16 +0200)] 
Allow to set the number of retries

9 years agoAdd documentation for retry=True
Beat Bolli [Thu, 18 Sep 2014 16:55:34 +0000 (18:55 +0200)] 
Add documentation for retry=True

9 years agoMake the delay after 50x HTTP errors configurable
Beat Bolli [Tue, 16 Sep 2014 21:10:15 +0000 (23:10 +0200)] 
Make the delay after 50x HTTP errors configurable

9 years agoHandle API rate limiting
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.

9 years ago Update .gitignore from https://github.com/github/gitignore
Hugo [Wed, 10 Sep 2014 11:52:35 +0000 (14:52 +0300)] 
 Update .gitignore from https://github.com/github/gitignore

9 years agoFix 'twitter rate' for updated API
Hugo [Wed, 10 Sep 2014 11:56:22 +0000 (14:56 +0300)] 
Fix 'twitter rate' for updated API

9 years agoMerge pull request #252 from ehershey/patch-1
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

9 years agoSend '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

9 years agoMerge pull request #244 from DTVD/master
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.

9 years agoRevert JSON formatter change
Mike Verdone [Sat, 30 Aug 2014 14:23:13 +0000 (16:23 +0200)] 
Revert JSON formatter change

9 years agoCosmetic changes (identation, trailing whitespace, 80 char lines…
Reventlov [Sun, 17 Aug 2014 05:37:33 +0000 (07:37 +0200)] 
Cosmetic changes (identation, trailing whitespace, 80 char lines…

9 years agoDoes anyone actually use python-twitter ?
Reventlov [Sat, 16 Aug 2014 17:58:42 +0000 (19:58 +0200)] 
Does anyone actually use python-twitter ?

9 years agoAdjusting the formatter
Reventlov [Fri, 15 Aug 2014 21:04:14 +0000 (23:04 +0200)] 
Adjusting the formatter

9 years agoFixing the printNicely function to avoid broken output on redirections/pipe
Reventlov [Fri, 15 Aug 2014 20:01:21 +0000 (22:01 +0200)] 
Fixing the printNicely function to avoid broken output on redirections/pipe

9 years agoReverting the change for the JSON formatter, pointless here
Reventlov [Fri, 15 Aug 2014 17:45:42 +0000 (19:45 +0200)] 
Reverting the change for the JSON formatter, pointless here

9 years agoFixing RTs text (see https://dev.twitter.com/docs/entities#retweets )
Reventlov [Fri, 15 Aug 2014 17:43:32 +0000 (19:43 +0200)] 
Fixing RTs text (see https://dev.twitter.com/docs/entities#retweets )

9 years agoFix the output for the json formatter
Reventlov [Fri, 15 Aug 2014 15:17:38 +0000 (17:17 +0200)] 
Fix the output for the json formatter

9 years agoUgly fix for the https://github.com/sixohsix/twitter/issues/245 issue
Reventlov [Fri, 15 Aug 2014 15:08:22 +0000 (17:08 +0200)] 
Ugly fix for the https://github.com/sixohsix/twitter/issues/245 issue

9 years agoMerge pull request #226 from hugovk/master
Mike Verdone [Sat, 30 Aug 2014 14:06:49 +0000 (16:06 +0200)] 
Merge pull request #226 from hugovk/master

Add coverage to tests

9 years agoVersion 1.15.0 twitter-1.15.0
Mike Verdone [Sat, 30 Aug 2014 13:57:50 +0000 (15:57 +0200)] 
Version 1.15.0

9 years agoformat requires names fields in python2.6
RouxRC [Wed, 27 Aug 2014 12:12:39 +0000 (14:12 +0200)] 
format requires names fields in python2.6

9 years agoRemove printed headers of all oauth2 queries
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

9 years agoUpdate README
Orakaro [Mon, 11 Aug 2014 03:09:04 +0000 (12:09 +0900)] 
Update README

9 years agofix img support for python3
RouxRC [Sun, 10 Aug 2014 20:54:11 +0000 (22:54 +0200)] 
fix img support for python3

9 years agofix support of profile_image methods, also using regular post, not multipart
RouxRC [Sun, 10 Aug 2014 20:53:41 +0000 (22:53 +0200)] 
fix support of profile_image methods, also using regular post, not multipart

9 years agoFix support for uploading non-multipart profile banner and other media
Archomeda [Sat, 9 Aug 2014 14:40:40 +0000 (16:40 +0200)] 
Fix support for uploading non-multipart profile banner and other media

9 years agoDo not POST to friendships/lookup, only users/lookup and statuses/lookup
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

9 years agoAdd argparse to dependencies for python 2.6
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

9 years agoMerge pull request #238 from mattcen/master
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

9 years agoFix list URL for twitter cmdline
Matthew Cengia [Sun, 27 Jul 2014 04:30:35 +0000 (14:30 +1000)] 
Fix list URL for twitter cmdline

9 years agoAdd oauth_callback=oob to force PIN to appear
Mike Verdone [Thu, 24 Jul 2014 23:05:49 +0000 (01:05 +0200)] 
Add oauth_callback=oob to force PIN to appear

9 years agoClean up documentation and README
Mike Verdone [Thu, 24 Jul 2014 23:01:16 +0000 (01:01 +0200)] 
Clean up documentation and README

9 years agoUnused import
Mike Verdone [Thu, 24 Jul 2014 22:41:24 +0000 (00:41 +0200)] 
Unused import

9 years agoImprove OAuth2 app-only code and documentation
Mike Verdone [Thu, 24 Jul 2014 22:39:28 +0000 (00:39 +0200)] 
Improve OAuth2 app-only code and documentation