Commit graph

503 commits

Author SHA1 Message Date
Ryan McGrath
e1c4035a63 Version bump for bug-fix rollout 2012-07-25 03:56:12 +09:00
Ryan McGrath
5c5dea109e Merge pull request #107 from lucadex/master
Bugs fixed as described on Twitter yesterday to Ryan McGrath
2012-07-24 11:52:14 -07:00
lucadex
ee94028854 Update core_examples/search_results.py 2012-07-24 12:46:16 +03:00
lucadex
c5468ee1b5 Update twython/__init__.py 2012-07-24 12:45:32 +03:00
Ryan McGrath
4163fcdc44 Merge pull request #104 from Mohmmadhd/master
change  __init__.py to properly import TwythonError
2012-07-22 05:35:50 -07:00
Mohmmadhd
7986da859f Update master 2012-07-10 15:22:31 +03:00
Ryan McGrath
0bcc15ecf3 2.3.2, latest @michaelhelmick fixes 2012-06-30 01:55:30 +09:00
Mike Helmick
d864376816 Code cleanup, Update requests version
* No sense in setting self.auth twice
* Make self.client a requests.session to reuse headers and auth
* requests 0.13.2 dependency isn't needed, but doesn't hurt
2012-06-29 12:19:37 -04:00
Ryan McGrath
73a1910066 Version bump for 2.3.1 release 2012-06-30 00:52:40 +09:00
Ryan McGrath
4fa38d27ba Merge pull request #101 from mgrouchy/fix-updatestatuswithmedia-params
Fixed broken params kwargs which was breaking updateStatusWithMedia
2012-06-29 08:38:21 -07:00
Mike Helmick
f4b2ebc40a This func no longer needs to urlencode the query, _request does it 2012-06-28 11:13:49 -04:00
Mike Helmick
a9b7b836c9 Fixes #103
Fix #93 is incorrect. We can avoid this by just removing the check and
quote_plus
2012-06-28 11:08:59 -04:00
Mike Grouchy
b552913e53 Fixed broken params kwargs which was breaking updateStatusWithMedia
* params are passed as **kwargs everywhere else, so updated
_media_update to be consistent with that.
* updated to updateProfileBackgroundImage to fall in line with
 _media_update changes.
2012-06-27 09:53:35 -04:00
Mike Helmick
dfdbbec5a8 Add H6's to README.md 2012-06-25 11:54:33 -04:00
Mike Helmick
2155ae0c23 Fix error in README.md, strip some not-needed comments and fixed a ternary 2012-06-25 11:50:44 -04:00
Ryan McGrath
8ea61af4fc Documentation showcasing proper importing; kinda sorta needed. 2012-06-25 05:08:16 +09:00
Ryan McGrath
068c504030 Merge branch 'requests_image_posting' (Pull Request #91)
- Fixes for README
- Re-added a bulkUserLookup method that warns for deprecation
- Merged in @michaelhelmick's work on media and oauth2 deprecation

Conflicts:
	setup.py
	twython/twython.py
2012-06-25 05:02:57 +09:00
Ryan McGrath
79842875be Merge pull request #97 from terrycojones/call-parent-init-in-exception-classes-96
call-parent-init-in-exception-classes-96
2012-06-24 12:16:34 -07:00
Ryan McGrath
9d57f34fce Merge pull request #93 from leandroferreira/master
corrected issue when searches with "q" gets encoded twice
2012-06-24 12:15:10 -07:00
Ryan McGrath
68534e8425 Merge pull request #95 from fumieval/master
Supported Proxies
2012-06-24 12:14:44 -07:00
terrycojones
1261b7b304 Some small suggested clean-ups with error / exception processing. 2012-06-11 15:48:24 -04:00
fumieval
3f4e374911 fixed the mistake that prints proxies to console for debugging. 2012-06-03 18:43:09 +09:00
fumieval
7caa688146 Supported proxies, just added an argument to Twython.__init__. 2012-06-03 18:25:25 +09:00
Leandro Ferreira
92f9c94146 Corrected when search q gets encoded twice 2012-05-31 10:59:43 -03:00
Mike Helmick
f232b873cb 2.2.0 2012-05-30 11:35:51 -03:00
Mike Helmick
072a257a1f 2.2.0 2012-05-30 11:35:30 -03:00
Mike Helmick
0b3f36f9b6 Need to at least have requests 0.13.0 2012-05-30 11:35:03 -03:00
Ryan McGrath
0d00ae97fb 2.0.1 release, fixes auth error 2012-05-23 18:49:08 +09:00
Ryan McGrath
fff1054e48 Merge pull request #92 from michaelhelmick/auth_fixes
Auth fixes for search and callback url
2012-05-23 02:45:59 -07:00
Michael Helmick
fc9e21435e Auth fixes for search and callback url 2012-05-22 10:40:38 -04:00
Michael Helmick
d93b48cded 2.1.0 Release
Set `self.auth` = None so that calls (like searching or getting a
profile avatar don't error out) Fixes 90
2012-05-17 12:22:37 -04:00
Michael Helmick
32a83a6b79 2.1.0 Release
* .md just look cleaner
* Updating documentation to look clean, imo. :P
2012-05-16 18:39:31 -04:00
Michael Helmick
5e817195ac 2.1.0 Release
* Removal of oauth2 lib, `requests` has fully taken over. :)
* FIXED: Obtaining auth url with specified callback was broke..
wouldn't give you auth url if you specified a callback url
* Updated requests to pass the headers that are passed in the init, so
User-Agent is once again `Twython Python Twitter Library v2.1.0`
👍 :)
* Catching exception when Stream API doesn't return valid JSON to parse
* Removed `DELETE` method. As of the Spring 2012 clean up, Twitter no
longer supports this method
* Updated `post` internal func to take files as kwarg
* `params - params or {}` only needs to be done in `_request`, just a
lot of redundant code on my part, sorry ;P
* Removed `bulkUserLookup`, there is no need for this to be a special
case, anyone can pass a string of username or user ids and chances are
if they're reading the docs and using this library they'll understand
how to use `lookupUser()` in `twitter_endpoints.py` passing params
provided in the Twitter docs
* Changed internal `oauth_secret` variable to be more consistent with
the keyword arg in the init `oauth_token_secret`
2012-05-16 12:09:26 -04:00
Michael Helmick
f2cd0d5284 2.1.0 release
* README.rst, kind of tried to clean up docs with more examples
* No longer need oauth2 lib 👍
2012-05-16 11:59:47 -04:00
Ryan McGrath
a13f59c5d6 Merge pull request #89 from michaelhelmick/master
Critical bug fixes
2012-05-14 12:32:21 -07:00
Michael Helmick
a4e3af1ad4 Critical bug fixes 2012-05-14 15:16:50 -04:00
Ryan McGrath
30c615908e Merge pull request #88 from michaelhelmick/omit_requestsoauth
Get rid of requests-oauth and a bunch of other schtuff
2012-05-14 08:27:16 -07:00
Michael Helmick
2f80933cb8 Get rid of requests-oauth and a bunch of other schtuff 2012-05-14 11:12:23 -04:00
Ryan McGrath
e36fa35ccd Merge pull request #86 from michaelhelmick/master
2.0 update
2012-05-13 09:42:43 -07:00
Michael Helmick
19293b54a9 Remove exceptions and methods in 2.0
* update twitter_endpoints with isListSubscriber and isListMember
instead of having them in twython.py

* app_key and app_secret in place to take over twitter_token and
twitter_secret

* updated methods to have the short hand description show up, should
always be on first line and the description.. not repeating the function

* fixed other method docs and stuff
2012-05-13 12:38:30 -04:00
Ryan McGrath
59c723ed7e Merge branch 'method_cleanups' from @michaelhelmick
Addresses most changes and issues with Twitter Spring cleanup 2012. Documentation
update on methods, started move to docs in RST format. Exceptions set to eventually
be deprecated (along with search functions).

Conflicts:
	twython/twython.py
2012-05-14 00:42:19 +09:00
Michael Helmick
9fa9b525a1 Note when upgrading to 1.7.0 2012-05-08 12:29:57 -04:00
Michael Helmick
0ee5e5877e Cleaning up endpoints per Twitter Spring 2012 deprecations
https://dev.twitter.com/docs/deprecations/spring-2012
2012-05-08 12:14:45 -04:00
Michael Helmick
ac18837ed6 Should be good for auto-merge
* Fixed a typo - 'startwith' replaced with 'startswith'
* Got rid of constructApiUrl, it's no longer needed, self.request()
does it internally
* A bunch of odds and ends to get this to auto-merge finally?! :D
2012-04-19 19:31:07 -04:00
Ryan McGrath
c16ec65915 Resolving merge conflicts, because Ryan is an idiot 2012-04-19 18:39:37 -04:00
Ryan McGrath
aabd29a01e Swap http => https for endpoint access, added Voulnet to contributers in the README 2012-04-19 18:38:10 -04:00
Ryan McGrath
6ebf6df884 Merge pull request #83 from Voulnet/patch-2
I fixed line 479 to properly URL encode the querystring (q parameter) fo...
2012-04-19 15:28:21 -07:00
Ryan McGrath
22fe97b432 Merge pull request #84 from Voulnet/patch-3
I have added the following lines to the function 'request' starting in l...
2012-04-19 15:26:53 -07:00
Mohammed ALDOUB
01a7284a8f I have added the following lines to the function 'request' starting in line 287:
# convert any http Twitter url into https, for the sake of user security
        # only convert the protocol part, not all occurences of http://, in case users want to search that
        endpoint = endpoint.replace('http://','https://',1)

This is to ensure all passed Twitter urls are converted into https, without messing with the rest of the url.
2012-04-14 05:53:51 +03:00
Mohammed ALDOUB
343dcb87ff I fixed line 479 to properly URL encode the querystring (q parameter) for the search functionality. According to http://dev.twitter.com/doc/get/search, the q parameter should be URL encoded, but Twython.unicode2utf8 doesn't urlencode the query.
So I enclosed it in a urllib.quote_plus function call.

examples: 

>>> urllib.quote_plus(Twython.unicode2utf8('h ^&$'))
'h+%5E%26%24'  
>>> Twython.unicode2utf8('h ^&$')
'h ^&$'
>>>
2012-04-14 05:34:22 +03:00