Corrected when search q gets encoded twice
This commit is contained in:
parent
0d00ae97fb
commit
92f9c94146
1 changed files with 1 additions and 1 deletions
|
|
@ -427,7 +427,7 @@ class Twython(object):
|
|||
e.g x.search(q='jjndf', page='2')
|
||||
"""
|
||||
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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue