Defect found in search_results.py #22
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#22
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?
Hi,
I found the following defect while running search_results.py in core_examples :
Traceback (most recent call last):
File "search_results.py", line 5, in
search_results = twitter.searchTwitter(q="WebsDotCom", rpp="50")
File "/usr/local/lib/python2.6/dist-packages/twython-1.3.3-py2.6.egg/twython/twython.py", line 267, in searchTwitter
searchURL = Twython.constructApiURL("http://search.twitter.com/search.json", kwargs) + "&" + urllib.urlencode({"q": Twython.unicode2utf8(search_query)})
TypeError: constructApiURL() takes exactly 3 arguments (2 given)
May I know what other arguments am I required to enter?
Hello, I think i found a fix to the issue.
Change "search_query" on line 267 of twython.py to "kwargs".
this will get search_results.py working
Hey,
This should be fixed and out now (pushed out Twython 1.3.4, should be on Pypi as well). Your fix technically works, yes, but in reality search_query should've been removed anyway. I did that and consolidated some other stuff, fixing two other bugs in the process.
Let me know if you find anything else!