]> jfr.im git - z_archive/twitter.git/log
z_archive/twitter.git
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

9 years agoadd doc to send tweets with images in README + consolidate api.py/README
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

9 years agofix image sending to handle both base64 images and plain bytes
RouxRC [Tue, 22 Jul 2014 22:24:37 +0000 (00:24 +0200)] 
fix image sending to handle both base64 images and plain bytes

10 years agoMerge pull request #227 from mponweiser/master
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.

10 years agoOption file path fixed for Windows
mponweiser [Thu, 22 May 2014 17:31:21 +0000 (19:31 +0200)] 
Option file path fixed for Windows

10 years agoMerge pull request #225 from hugovk/threeptfour
Mike Verdone [Mon, 12 May 2014 18:45:27 +0000 (20:45 +0200)] 
Merge pull request #225 from hugovk/threeptfour

Python 3.4 is the latest 3.x release and shouldn't be allowed to fail

10 years agoPython 3.4 is the latest 3.x release and shouldn't be allowed to fail
hugovk [Mon, 12 May 2014 12:11:13 +0000 (15:11 +0300)] 
Python 3.4 is the latest 3.x release and shouldn't be allowed to fail

10 years agoCoverage badge points to sixohsix [CI skip]
Hugo [Fri, 18 Apr 2014 11:11:55 +0000 (14:11 +0300)] 
Coverage badge points to sixohsix [CI skip]

It'll need enabling on coveralls.io and a build to run to show a number

10 years agoAdd Coveralls coverage badge [CI skip]
Hugo [Fri, 18 Apr 2014 11:09:30 +0000 (14:09 +0300)] 
Add Coveralls coverage badge [CI skip]

10 years agoIgnore pypy lib files like /usr/local/pypy/lib_pypy/datetime.py
hugovk [Fri, 18 Apr 2014 10:54:31 +0000 (13:54 +0300)] 
Ignore pypy lib files like /usr/local/pypy/lib_pypy/datetime.py

10 years agoAdd coverage to tests
hugovk [Fri, 18 Apr 2014 10:35:39 +0000 (13:35 +0300)] 
Add coverage to tests

10 years agoRemove redundant code
hugovk [Thu, 17 Apr 2014 08:05:16 +0000 (11:05 +0300)] 
Remove redundant code

10 years agoMerge (parallel tests had already been fixed in upstream)
hugovk [Thu, 17 Apr 2014 08:02:20 +0000 (11:02 +0300)] 
Merge (parallel tests had already been fixed in upstream)

10 years agoFix test typo
hugovk [Thu, 17 Apr 2014 07:43:33 +0000 (10:43 +0300)] 
Fix test typo

10 years agoVersion 1.14.3 twitter-1.14.3
Mike Verdone [Wed, 16 Apr 2014 21:44:52 +0000 (23:44 +0200)] 
Version 1.14.3

10 years agoRestore 3.2 to trove classifiers.
Mike Verdone [Wed, 16 Apr 2014 21:42:21 +0000 (23:42 +0200)] 
Restore 3.2 to trove classifiers.

10 years agoTry to restore Python 3.2 compat by using futuristic unicode literals.
Mike Verdone [Wed, 16 Apr 2014 21:29:10 +0000 (23:29 +0200)] 
Try to restore Python 3.2 compat by using futuristic unicode literals.

10 years agoMake tests more robust when run in parallel, to avoid the occasional https://travis...
hugovk [Wed, 16 Apr 2014 21:26:24 +0000 (00:26 +0300)] 
Make tests more robust when run in parallel, to avoid the occasional https://travis-ci.org/sixohsix/twitter/jobs/23153488

10 years agoMerge remote-tracking branch 'upstream/master'
hugovk [Wed, 16 Apr 2014 21:18:24 +0000 (00:18 +0300)] 
Merge remote-tracking branch 'upstream/master'

Conflicts:
README

10 years agoMerge pull request #218 from edi-bice/master
Mike Verdone [Wed, 16 Apr 2014 20:29:13 +0000 (22:29 +0200)] 
Merge pull request #218 from edi-bice/master

Trapping additional exceptions causing archiver script failures

... mostly due to unicode decoding when doing follow-redirects

10 years agoMerge pull request #221 from hugovk/py3
Mike Verdone [Wed, 16 Apr 2014 20:23:16 +0000 (22:23 +0200)] 
Merge pull request #221 from hugovk/py3

Add TravisCI support
... at least for the code run by the tests on Travis CI.

https://travis-ci.org/hugovk/twitter/builds/23027808

Notes:
 * 2.6, 2.7, 3.3 pass.
 * 3.4 isn't quite yet available, but is coming soon: https://github.com/travis-ci/travis-ci/issues/1989#issuecomment-39315535
 * 3.2 fails because it doesn't have u'uncode stuff' but I guess most Py3 users will be ok with 3.3 or 3.4.
 * I've not looked into why pypy fails.
 * (This PR also contains the same changes as PR #220.)

10 years agoAdd Travis CI build badge [CI skip]
hugovk [Tue, 15 Apr 2014 19:04:36 +0000 (22:04 +0300)] 
Add Travis CI build badge [CI skip]

10 years agoMerge
hugovk [Tue, 15 Apr 2014 18:35:10 +0000 (21:35 +0300)] 
Merge

10 years agoMerge pull request #217 from sixohsix/pickled
Mike Verdone [Tue, 15 Apr 2014 14:55:06 +0000 (16:55 +0200)] 
Merge pull request #217 from sixohsix/pickled

Support pickling at the risk of breaking some stuff
- support pickling of responses (#82)
- silence Python 2.6 warning (#179)
- this makes rate-limit headers unavailable on boolean or string responses. I'm not sure if that's a problem.

10 years agoAdd 3.2 as allowed failure. Upgrade 2.6 and 3.3 as non-allowed failuers
hugovk [Tue, 15 Apr 2014 10:58:05 +0000 (13:58 +0300)] 
Add 3.2 as allowed failure. Upgrade 2.6 and 3.3 as non-allowed failuers

10 years agoAdd build badge
Hugo [Tue, 15 Apr 2014 10:56:18 +0000 (13:56 +0300)] 
Add build badge

TODO: Remember to change hugovk to sixohsix after merge

10 years agohttplib is http.client in Py3
hugovk [Tue, 15 Apr 2014 10:46:16 +0000 (13:46 +0300)] 
httplib is http.client in Py3

10 years agoPy3 exception fix
hugovk [Tue, 15 Apr 2014 10:41:31 +0000 (13:41 +0300)] 
Py3 exception fix

10 years agoFix test_get_trends() for API v1.1
hugovk [Tue, 15 Apr 2014 10:32:04 +0000 (13:32 +0300)] 
Fix test_get_trends() for API v1.1

10 years agoFix test_search()
hugovk [Tue, 15 Apr 2014 10:28:20 +0000 (13:28 +0300)] 
Fix test_search()

10 years agoFix search tests to use api.twitter.com with authorisation
hugovk [Tue, 15 Apr 2014 10:07:55 +0000 (13:07 +0300)] 
Fix search tests to use api.twitter.com with authorisation

10 years agoAdd a test for API v1 unsupported. Other tests use v1.1 instead of v1.
hugovk [Tue, 15 Apr 2014 09:36:11 +0000 (12:36 +0300)] 
Add a test for API v1 unsupported. Other tests use v1.1 instead of v1.

10 years agoAdd Travis CI
hugovk [Tue, 15 Apr 2014 08:11:50 +0000 (11:11 +0300)] 
Add Travis CI

10 years agoTrapping additional exceptions causing archiver script failures on individual tweets
Edi Bice [Wed, 26 Mar 2014 14:13:16 +0000 (10:13 -0400)] 
Trapping additional exceptions causing archiver script failures on individual tweets

10 years agoSupport pickling at the risk of breaking some stuff.
Mike Verdone [Mon, 24 Mar 2014 23:08:49 +0000 (00:08 +0100)] 
Support pickling at the risk of breaking some stuff.

10 years agoMerge pull request #215 from wlonk/colorization twitter-1.14.2
Mike Verdone [Mon, 24 Mar 2014 20:19:47 +0000 (21:19 +0100)] 
Merge pull request #215 from wlonk/colorization

Colorization
I've added some logic to align usernames and wrap tweets. It's preliminary, but hopefully useful. I have tied it in to the ANSI format, because that seems the most human-oriented format.

I'm happy to talk about this more and go back and forth on it, and I hope it's useful!

10 years agoMerge pull request #216 from edi-bice/master
Mike Verdone [Mon, 24 Mar 2014 20:00:27 +0000 (21:00 +0100)] 
Merge pull request #216 from edi-bice/master

--follow-redirects hangs indefinitely on certain urls
urllib2 opener open lacked a timeout parameter causing it to hang indefinitely on certain URLs where the host does not send back any data - added timeout=1 for now and will expose as parameter later - also added socket.timeout exception to list of exceptions handled

10 years agourllib2 opener open lacked a timeout parameter causing it to hang indefinitely on...
Edi Bice [Fri, 21 Mar 2014 20:36:58 +0000 (16:36 -0400)] 
urllib2 opener open lacked a timeout parameter causing it to hang indefinitely on certain URLs where the host does not send back any data - added timeout=1 for now and will expose as parameter later - also added socket.timeout exception to list of exceptions handled

10 years agoUsing upstream ANSI colors.
Kit La Touche [Fri, 21 Mar 2014 16:42:02 +0000 (10:42 -0600)] 
Using upstream ANSI colors.

10 years agoCorrections to width numbers.
Kit La Touche [Thu, 13 Jun 2013 03:50:42 +0000 (21:50 -0600)] 
Corrections to width numbers.

10 years agoImproved display of multiline tweets.
Kit La Touche [Thu, 13 Jun 2013 03:49:04 +0000 (21:49 -0600)] 
Improved display of multiline tweets.

10 years agoOops, left debugging cruft on there.
Kit La Touche [Thu, 13 Jun 2013 03:30:45 +0000 (21:30 -0600)] 
Oops, left debugging cruft on there.

10 years agoAdded spacing for usernames.
Kit La Touche [Thu, 13 Jun 2013 03:29:23 +0000 (21:29 -0600)] 
Added spacing for usernames.

10 years agoMerge pull request #214 from edi-bice/master
Mike Verdone [Thu, 20 Mar 2014 17:45:44 +0000 (18:45 +0100)] 
Merge pull request #214 from edi-bice/master

Fixed broken rate limiting error handling in archiver/follow.
Twitter changed rate limiting response objects quite a bit in v1.1.
In addition there were bugs due to import of time module and time object from datetime module.

10 years agoFixed broken rate limiting error handling in archiver/follow.
Edi Bice [Thu, 20 Mar 2014 17:21:10 +0000 (13:21 -0400)] 
Fixed broken rate limiting error handling in archiver/follow.
Twitter changed rate limiting response objects quite a bit in v1.1.
In addition there were bugs due to import of time module and time object from datetime module.

10 years agoMerge pull request #213 from RouxRC/fix-twitterrate
Mike Verdone [Wed, 19 Mar 2014 14:27:19 +0000 (15:27 +0100)] 
Merge pull request #213 from RouxRC/fix-twitterrate

Fix routing to rate_limit_status calls (Fix #157)

10 years agoFix routing to rate_limit_status calls (Fix #157)
RouxRC [Wed, 19 Mar 2014 00:59:15 +0000 (01:59 +0100)] 
Fix routing to rate_limit_status calls (Fix #157)

10 years agoVersion 1.14.1. twitter-1.14.1
Mike Verdone [Wed, 12 Mar 2014 20:41:32 +0000 (21:41 +0100)] 
Version 1.14.1.

10 years agoMerge pull request #211 from justinclift/master
Mike Verdone [Wed, 12 Mar 2014 20:35:34 +0000 (21:35 +0100)] 
Merge pull request #211 from justinclift/master

Trivial typo fix