ajgoune / python-twitter

Automatically exported from code.google.com/p/python-twitter
Apache License 2.0
0 stars 0 forks source link

GetSearch() fails on search terms containing # and/or @ #123

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. search for a hastag such as '#test'

What is the expected output? What do you see instead?
The expected output is a list of tweets with the hash tag '#test'. Instead 
you get an empty list.

What version of the product are you using? On what operating system?
I'm using the tip of the default branch, currently 86eec8548c49.

Please provide any additional information below.
The problem is due to the search terms being urlencoded twice. The first 
time, the # character is converted to %23. The second time %23 is 
converted to %2523. This is easily solved by simply removing the 
quote_plus() on line 1417 of twitter.py. A Mercurial patch is attached. The 
fix could also be pulled from my BitBucket fork at 
http://bitbucket.org/Josh/python-twitter/

Original issue reported on code.google.com by joshuaou...@gmail.com on 13 Feb 2010 at 10:09

Attachments: