Merge pull request #93 from leandroferreira/master
corrected issue when searches with "q" gets encoded twice
This commit is contained in:
commit
9d57f34fce
1 changed files with 1 additions and 1 deletions
|
|
@ -428,7 +428,7 @@ class Twython(object):
|
||||||
e.g x.search(q='jjndf', page='2')
|
e.g x.search(q='jjndf', page='2')
|
||||||
"""
|
"""
|
||||||
if 'q' in kwargs:
|
if 'q' in kwargs:
|
||||||
kwargs['q'] = urllib.quote_plus(Twython.unicode2utf8(kwargs['q']))
|
kwargs['q'] = urllib.quote_plus(Twython.unicode2utf8(kwargs['q'], ':'))
|
||||||
|
|
||||||
return self.get('https://search.twitter.com/search.json', params=kwargs)
|
return self.get('https://search.twitter.com/search.json', params=kwargs)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue