Skip to content

Commit

Permalink
Make search work again
Browse files Browse the repository at this point in the history
  • Loading branch information
sixohsix committed Jul 28, 2010
1 parent 452d1d1 commit e15fbef
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions twitter/cmdline.py
Expand Up @@ -331,15 +331,14 @@ def __call__(self, twitter, options):
# We need to be pointing at search.twitter.com to work, and it is less
# tangly to do it here than in the main()
twitter.domain="search.twitter.com"
twitter.uri=""
twitter.uriparts=()
# We need to bypass the TwitterCall parameter encoding, so we
# don't encode the plus sign, so we have to encode it ourselves
query_string = "+".join(
[quote(term.decode(get_term_encoding()))
for term in options['extra_args']])
twitter.encoded_args = "q=%s" %(query_string)

results = twitter.search()['results']
results = twitter.search(q=query_string)['results']
f = get_formatter('search', options)
for result in results:
resultStr = f(result, options)
Expand Down

0 comments on commit e15fbef

Please sign in to comment.