Bugs item #1804103, was opened at 2007-09-28 20:27
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=180410…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: John Vandenberg (zeroj)
Assigned to: Nobody/Anonymous (nobody)
Summary: query.py not working
Initial Comment:
query.py appears to be out of sync with wikipeda.getUrl(). getUrl expects 'data'
to be name=value pairs, however query.py is urlencoding the 'titles' data before
calling it.
Also, the verbose output of "titlecount" is off by one
To see the problem, create a small test case using a sample invocation mentioned in
query.py:
-- test.py --
import query
print query.GetInterwikies('ru',u'user:yurik')
-- error on execution---
Checked for running processes. 1 processes currently running, including the current
process.
Traceback (most recent call last):
File "test.py", line 3, in ?
print query.GetInterwikies('ru',u'user:yurik')
File "/path/to/query.py", line 56, in GetInterwikies
return GetData( lang, params )
File "/path/to/query.py", line 40, in GetData
jsontext = site.getUrl( path, retry=True, data=data )
File "/path/to/wikipedia.py", line 3471, in getUrl
data = self.urlEncode(data)
File "/path/to/wikipedia.py", line 3279, in urlEncode
for key, value in query.iteritems():
AttributeError: 'str' object has no attribute 'iteritems'
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=180410…