]>
jfr.im git - z_archive/twitter.git/log
Mike Verdone [Sun, 27 Jan 2013 22:10:37 +0000 (23:10 +0100)]
Update API docs because Twitter changed everything.
Mike Verdone [Sun, 27 Jan 2013 21:51:01 +0000 (22:51 +0100)]
UTF-8 decode extra_args only if Py 2.7.
Mike Verdone [Sun, 27 Jan 2013 21:33:02 +0000 (13:33 -0800)]
Merge pull request #115 from dragonfax/jstillwell/add_ids
add id to twitter-follow output.
I use this to track twitter user names.
Mike Verdone [Sun, 27 Jan 2013 21:31:37 +0000 (13:31 -0800)]
Merge pull request #114 from az0/master
archiver downloads duplicate tweets
The log to the screen shows the downloaded tweets come in sizes 200,199,199. Example;
Archiving nprnews tweets in ./nprnews
Browsing nprnews statuses, new tweets: 200
Browsing nprnews statuses, new tweets: 199
Browsing nprnews statuses, new tweets: 199
So I compared the tweet ID keys and found duplicate tweets.
Mike Verdone [Sun, 27 Jan 2013 21:29:47 +0000 (13:29 -0800)]
Merge pull request #111 from ccosby/ForceAnsi
Add forceAnsi option to cmdline.
Enable ansi formatting when stdout isn't a tty. I needed this for use
with geektool.
Jason Stillwell [Sat, 26 Jan 2013 18:01:01 +0000 (10:01 -0800)]
add id to twitter-follow output.
Andrew Ziem [Wed, 23 Jan 2013 03:08:57 +0000 (20:08 -0700)]
remove trailing whitespace
Andrew Ziem [Wed, 23 Jan 2013 02:49:03 +0000 (19:49 -0700)]
Do not download the same tweet twice which could slowly waste API calls and bandwidth
Chris Cosby [Wed, 16 Jan 2013 22:53:14 +0000 (17:53 -0500)]
Add better formatting to status output.
Use HTMLparser to convert &blah; correctly
If ansi output, bold #hashtags and underline @profiles
Enable ansi formatting when stdout isn't a tty. I needed this for use
with geektool.
Mike Verdone [Tue, 22 Jan 2013 11:46:35 +0000 (03:46 -0800)]
Merge pull request #110 from anmarmansur/master
Fix Issue #60 can't write config file on Windows
This fixes the problem by writing the files in the correct location (user home folder) on Windows rather than the root of the system drive which:
1. Requires unnecessary admin rights elevation
2. Will overwrite other users' settings and tokens
Anmar Mansur [Fri, 11 Jan 2013 17:50:38 +0000 (10:50 -0700)]
Fix Issue #60 can't write config file on Windows
Windows doesn't have a HOME environment variable. The config file ends up being written to the root of system drive, hence the need for admin rights. Windows does however define a USERPROFILE environment variable that points correctly to the logged in user's profile home folder where most Python programs store their settings. Tested on Windows 7 x64 and Windows 8 x64.
Anmar Mansur [Fri, 11 Jan 2013 17:46:50 +0000 (10:46 -0700)]
Fix Issue #60 can't write config file on Windows
Windows doesn't have a HOME environment variable. The config file ends up being written to the root of system drive, hence the need for admin rights. Windows does however define a USERPROFILE environment variable that points correctly to the logged in user's profile home folder where most Python programs store their settings. Tested on Windows 7 x64 and Windows 8 x64.
Mike Verdone [Tue, 11 Dec 2012 14:02:56 +0000 (06:02 -0800)]
Merge pull request #106 from edavis/add-timeout-to-stream
stream: Include _timeout parameter in _handle_response
In
a5aab11 (and renamed in
8fd7289d ), \_handle_response began receiving
a \_timeout parameter when invoked via TwitterCall.__call__.
The _handle_response method in api.py was updated to reflect this, but
not the two (TwitterStreamCall, TwitterStreamCallNonBlocking) in
stream.py.
This commit adds _timeout to the two streaming classes to accommodate
the changes.
Eric Davis [Thu, 6 Dec 2012 22:59:11 +0000 (14:59 -0800)]
stream: Include _timeout parameter in _handle_response
In
a5aab11 (and renamed in
8fd7289d ), _handle_response began receiving
a _timeout parameter when invoked via TwitterCall.__call__.
The _handle_response method in api.py was updated to reflect this, but
not the two (TwitterStreamCall, TwitterStreamCallNonBlocking) in
stream.py.
This commit adds _timeout to the two streaming classes to accommodate
the changes.
Mike Verdone [Tue, 27 Nov 2012 16:28:59 +0000 (08:28 -0800)]
Merge pull request #104 from np1/patch-1
Update twitter/twitter_globals.py
create_all method fails as a GET request, it needs to be a POST like create
np1 [Tue, 27 Nov 2012 03:04:09 +0000 (03:04 +0000)]
Update twitter/twitter_globals.py
create_all method fails as a GET request, it needs to be a POST like create
Mike Verdone [Sat, 3 Nov 2012 20:18:13 +0000 (13:18 -0700)]
Merge pull request #100 from erfaan/master
Fixed #99
Introduced an optional parameter `timeout` which each API request.
Irfan Ahmad [Sat, 3 Nov 2012 20:10:40 +0000 (01:10 +0500)]
Changed special parameter timeout to _timeout so that it doesn't block any parameter names Twitter decides to use
Mike Verdone [Sat, 3 Nov 2012 19:56:31 +0000 (12:56 -0700)]
Merge pull request #98 from SamuelMarks/patch-1
Removed extra parantheses
Irfan Ahmad [Thu, 1 Nov 2012 08:50:54 +0000 (13:50 +0500)]
Fixes #99. Introduced an optional timeout parameter for each API call
Samuel Marks [Mon, 29 Oct 2012 03:17:10 +0000 (14:17 +1100)]
Removed extra parantheses
Mike Verdone [Sun, 14 Oct 2012 13:10:58 +0000 (06:10 -0700)]
Merge pull request #92 from erfaan/fix-91
Fixes 91
Also added the property rate_limit_limit to get rate limit ceiling for current request.
Irfan Ahmad [Sat, 13 Oct 2012 05:56:35 +0000 (10:56 +0500)]
Fixes #91 and fixed the docstring of the new rate_limit_limit property
Irfan Ahmad [Sat, 13 Oct 2012 05:48:56 +0000 (10:48 +0500)]
Fixes 91. Also added the property rate_limit_limit to get rate limit ceiling for current request.
Mike Verdone [Thu, 11 Oct 2012 20:19:24 +0000 (22:19 +0200)]
Fix issue #90. Use _id to mean 'id' as a CGI param.
Mike Verdone [Thu, 11 Oct 2012 19:26:19 +0000 (12:26 -0700)]
Merge pull request #89 from ollieglass/patch-1
Change API default version to 1.1
Ollie Glass [Tue, 9 Oct 2012 22:34:01 +0000 (00:34 +0200)]
API defaults to version 1.1
Mike Verdone [Thu, 4 Oct 2012 15:44:46 +0000 (17:44 +0200)]
Turn on socket keepalives. This will hopefully fix #76.
Mike Verdone [Fri, 28 Sep 2012 13:36:41 +0000 (06:36 -0700)]
Merge pull request #87 from hugovk/master
Added options for archiving mentions and favorites
I've added the following options to archiver.py:
```
-m --mentions <file> archive own mentions instead of timeline into
given file name (requires OAuth, max 800 statuses)
-v --favorites archive user's favorites instead of timeline
```
This lets me periodically backup all my tweets, favorites and mentions with a batch file something like this:
```
@echo Archiving my tweets
@call twitter-archiver.exe --oauth --save-dir M:\twitter hugovk
@echo.
@echo Archiving my favourites
@call twitter-archiver.exe --oauth --save-dir M:\twitter --favorites hugovk
@echo.
@echo Archiving my mentions
@call twitter-archiver.exe --oauth --save-dir M:\twitter --mentions hugovk-mentions
```
Hugo [Mon, 24 Sep 2012 21:12:57 +0000 (00:12 +0300)]
Aded options for archiving mentions and favorites.
-m --mentions <file> archive own mentions instead of timeline into
given file name (requires OAuth, max 800 statuses)
-v --favorites archive user's favorites instead of timeline
Mike Verdone [Mon, 24 Sep 2012 14:08:35 +0000 (07:08 -0700)]
Merge pull request #85 from yegle/master
Fix for issue 84
yegle [Fri, 14 Sep 2012 22:56:17 +0000 (15:56 -0700)]
Fixed: gzip'ed response not decoded in TwitterHTTPError
Mike Verdone [Thu, 9 Aug 2012 16:22:49 +0000 (19:22 +0300)]
Documentation.
Mike Verdone [Fri, 3 Aug 2012 21:07:25 +0000 (23:07 +0200)]
Version 1.9.0
Mike Verdone [Fri, 3 Aug 2012 21:05:57 +0000 (23:05 +0200)]
Replace 'getheader' with 'get'.
blob79 [Wed, 1 Aug 2012 17:19:47 +0000 (19:19 +0200)]
fixes for python 3
blob79 [Tue, 24 Jul 2012 19:11:50 +0000 (21:11 +0200)]
follow redirects of tweeted urls before archiving
Mike Verdone [Tue, 31 Jul 2012 23:02:00 +0000 (16:02 -0700)]
Merge pull request #69 from Lacrymology/master
Reverse multiple-twits
Mike Verdone [Tue, 31 Jul 2012 19:26:31 +0000 (21:26 +0200)]
In Python 3 land, StringIO is actually BytesIO.
Mike Verdone [Tue, 31 Jul 2012 18:42:48 +0000 (20:42 +0200)]
Merge branch 'master' of git://github.com/jameslafa/twitter
Conflicts:
twitter/api.py
Mike Verdone [Tue, 31 Jul 2012 18:25:46 +0000 (11:25 -0700)]
Merge pull request #74 from gchandrasa/master
Bug fix for profile image API
Mike Verdone [Tue, 31 Jul 2012 18:24:05 +0000 (11:24 -0700)]
Merge pull request #75 from pwoolcoc/master
Fix exception running cmdline on Python 3.2.3
Paul Woolcock [Fri, 6 Jul 2012 11:25:00 +0000 (07:25 -0400)]
__builtins__["raw_input"] throws a KeyError on Python 3.2.3, so adding it to the exceptions tuple
Gilang Chandrasa [Wed, 4 Jul 2012 04:51:34 +0000 (11:51 +0700)]
bug fix for profile image API
James Lafa [Tue, 19 Jun 2012 15:50:01 +0000 (17:50 +0200)]
Add gzip compression to http requests
Tomas Neme [Sat, 16 Jun 2012 00:00:34 +0000 (21:00 -0300)]
Merge remote-tracking branch 'original/master'
Tomas Neme [Sat, 16 Jun 2012 00:00:05 +0000 (21:00 -0300)]
Merge branch 'invert'
Tomas Neme [Fri, 15 Jun 2012 23:59:57 +0000 (20:59 -0300)]
make inversion optional
Mike Verdone [Thu, 14 Jun 2012 17:00:09 +0000 (10:00 -0700)]
Merge pull request #71 from davecap/master
Make README less annoying for first-time users
David Caplan [Tue, 12 Jun 2012 15:25:00 +0000 (11:25 -0400)]
make readme less annoying to first-time users
Mike Verdone [Sun, 13 May 2012 20:09:16 +0000 (22:09 +0200)]
Version bump 1.8.0.
Mike Verdone [Thu, 10 May 2012 22:50:23 +0000 (00:50 +0200)]
Still tweaking the README.
Mike Verdone [Thu, 10 May 2012 22:43:59 +0000 (00:43 +0200)]
Updated the examples in the documentation.
Mike Verdone [Thu, 10 May 2012 22:14:17 +0000 (00:14 +0200)]
Dump the full documentation into the README and markdownify it.
Mike Verdone [Thu, 10 May 2012 22:05:02 +0000 (00:05 +0200)]
Add symlink for README.md in case it makes GitHub happy.
Mike Verdone [Thu, 10 May 2012 21:34:34 +0000 (23:34 +0200)]
Fix the shell. Broken since the Python 3 move. I guess nobody uses it. :(
Mike Verdone [Thu, 10 May 2012 21:21:11 +0000 (14:21 -0700)]
Merge pull request #61 from StalkR/archiver-follow
New scripts: twitter-archiver and twitter-follow
Tomas Neme [Thu, 10 May 2012 20:03:01 +0000 (17:03 -0300)]
Merge remote-tracking branch 'original/master'
Mike Verdone [Fri, 6 Apr 2012 15:11:57 +0000 (08:11 -0700)]
Merge pull request #66 from ptwobrussell/master
Fixes Issue #65, but regresses the tilde bug. Need to fix this later.
Matthew A. Russell [Fri, 6 Apr 2012 03:14:06 +0000 (22:14 -0500)]
Fixes Issue #65 (argument 'safe' is not recognized by urlencode from urllib with python 2.7)
Mike Verdone [Tue, 20 Mar 2012 19:19:58 +0000 (12:19 -0700)]
Merge pull request #64 from grahame/master
Fix tildes
Grahame Bowland [Tue, 20 Mar 2012 13:52:28 +0000 (21:52 +0800)]
Do not quote ~ for oauth; see https://dev.twitter.com/discussions/1260
Mike Verdone [Sun, 26 Feb 2012 16:03:13 +0000 (17:03 +0100)]
Add a umode handler to ircbot to work with quakenet. see: http://www.reddit.com/r/Python/comments/fkk0w/hi_rpython_im_starting_messing_around_with/
StalkR [Thu, 16 Feb 2012 18:17:17 +0000 (19:17 +0100)]
archiver: soft fail on 404 when given profile does not exist
StalkR [Tue, 7 Feb 2012 08:03:26 +0000 (09:03 +0100)]
twitter-archiver and twitter-follow initial import
Mike Verdone [Sun, 29 Jan 2012 02:11:58 +0000 (03:11 +0100)]
Flush after performing an action in the refresh case.
Michael Verdone [Sun, 29 Jan 2012 01:39:30 +0000 (02:39 +0100)]
Improve documentation wrt OAuth.
Mike Verdone [Sat, 3 Dec 2011 18:19:19 +0000 (19:19 +0100)]
I can't type.
Mike Verdone [Sat, 3 Dec 2011 18:18:58 +0000 (19:18 +0100)]
Fix TwitterStream docs.
Mike Verdone [Sat, 3 Dec 2011 18:16:49 +0000 (19:16 +0100)]
Implement true non-blocking TwitterStream.
Mike Verdone [Sat, 3 Dec 2011 17:48:04 +0000 (18:48 +0100)]
Move the recv call to the bottom of the iterator loop so that it really has no lag.
Mike Verdone [Sat, 3 Dec 2011 17:13:41 +0000 (18:13 +0100)]
Use socket.recv to get data in the stream to prevent waiting for complete 1024b chunks. Patch by Daniel Jones (github:ideoforms).
Mike Verdone [Fri, 2 Dec 2011 11:54:53 +0000 (12:54 +0100)]
Use a regex to deduce better which actions should use POST. Patch by Daniel Jones (github:ideoforms).
miv [Tue, 22 Nov 2011 21:01:53 +0000 (22:01 +0100)]
Fix a test.
miv [Tue, 22 Nov 2011 20:41:52 +0000 (21:41 +0100)]
Version bump 1.7.2
miv [Tue, 22 Nov 2011 20:41:37 +0000 (21:41 +0100)]
Pass a method param to force post or get method.
Mike Verdone [Mon, 7 Nov 2011 22:02:33 +0000 (14:02 -0800)]
Merge pull request #58 from harobed/master
Fix error in WrappedTwitterResponse, headers isn't transmited to object.
Stephane Klein [Sun, 30 Oct 2011 12:27:40 +0000 (13:27 +0100)]
Fix mistake in api.wrap_response, before this fix, we can't access to "rate_limit_remaining" and "rate_limit_reset" properties in "WrappedTwitterResponse" class
Tomas Neme [Sat, 15 Oct 2011 21:04:48 +0000 (18:04 -0300)]
reversed multiple twitts so they appear rightside up on the timeline
miv [Sun, 9 Oct 2011 17:13:47 +0000 (19:13 +0200)]
Version bump 1.7.1
miv [Sun, 9 Oct 2011 17:12:57 +0000 (19:12 +0200)]
I always find unicode errors just after a release. Urg. Fix one in quote_noplus.
miv [Sun, 9 Oct 2011 16:40:23 +0000 (18:40 +0200)]
Version bump 1.7
miv [Wed, 5 Oct 2011 20:53:16 +0000 (22:53 +0200)]
Fix issue #43 TwitterHTTPError.__str__ messed up.
miv [Wed, 5 Oct 2011 20:39:15 +0000 (22:39 +0200)]
Who knew this mysterious looking code was totally useless? Not me.
miv [Wed, 5 Oct 2011 20:23:59 +0000 (22:23 +0200)]
Set unichr = chr for Python 3.
Mike Verdone [Wed, 5 Oct 2011 20:22:12 +0000 (13:22 -0700)]
Merge pull request #50 from geeknikbrian/master
Fix for twitterbot crash
Mike Verdone [Wed, 5 Oct 2011 20:12:11 +0000 (13:12 -0700)]
Merge pull request #54 from Lacrymology/master
Command line tool breaks if you pass a utf string to it. Also improve sending tweets longer than 140 via the command line tool.
miv [Wed, 5 Oct 2011 20:02:25 +0000 (22:02 +0200)]
Extend API so I can use underscore to insert an integer value into URL.
miv [Wed, 5 Oct 2011 19:48:14 +0000 (21:48 +0200)]
Test for setting unicode status.
Tomas Neme [Wed, 5 Oct 2011 06:15:41 +0000 (03:15 -0300)]
made it repeat the @nicks at the beginning of the post
Tomas Neme [Thu, 22 Sep 2011 14:50:29 +0000 (11:50 -0300)]
split long twits
Tomas Neme [Wed, 21 Sep 2011 18:57:42 +0000 (15:57 -0300)]
converted input to locale encoding
Mike Verdone [Sun, 18 Sep 2011 14:41:27 +0000 (07:41 -0700)]
Merge pull request #53 from kennu/master
Fix crash with unicode status updates.
Kenneth Falck [Wed, 14 Sep 2011 20:25:19 +0000 (23:25 +0300)]
Encode basestring instead of just str to utf-8
Brian Carpenter [Sun, 17 Jul 2011 01:52:49 +0000 (21:52 -0400)]
fix a twitterbot crash caused by unicode text?
Mike Verdone [Sat, 9 Jul 2011 12:53:25 +0000 (14:53 +0200)]
- Check rate limit using the command line tool. Patch by @stalkr_
Mike Verdone [Mon, 4 Apr 2011 19:57:45 +0000 (21:57 +0200)]
Make twitterbot reconnect to IRC if it drops out.
Mike Verdone [Mon, 4 Apr 2011 19:44:13 +0000 (21:44 +0200)]
Version bump 1.6.1
Mike Verdone [Mon, 4 Apr 2011 19:42:42 +0000 (21:42 +0200)]
Fix unicorn decode bugs in ircbot.
Mike Verdone [Mon, 4 Apr 2011 19:34:08 +0000 (21:34 +0200)]
Remove api_version when domain is not api.twitter.com.