searchTwitter() does not encode query #25
Labels
No labels
Bug
Enhancement
Feature Suggestion
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: code/twython#25
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I believe the searchTwitter() method does not encode the query properly.
Expected result:
Only tweets with the string "mountain view" (name of the city) should appear.
Actual result:
Most returned tweets contain only the word "mountain".
My ugly fix right now is to use urllib.quote_plus(), see below. It gets the expected behavior, but it would be great if this fix were worked into the library.
Committed and fixed. Twython 1.3.5 is now patched to handle this scenario; it'd be on Pypi, but apparently the damn thing can't stay up for more than a few hours at a time. ;P
Enjoy, though, and feel free to hit me up if you see anything else like this.