For example this query:
http://api.search.live.net/json.aspx?Query=ninjas&Version=2.0&AppId=<YOUR_APP_ID
>&Sources=Web&Web.Count=50
returns an exact result count (37-40 right now, likely to change). It appears
that pybing expects this to be >1000 always and doesn't check the actual
returned total count. Iterating through such a query yields hundreds of
repeated results.
Here is an example program that exposes the problem using svn trunk:
#!/usr/bin/env python
from pybing.query import WebQuery
q = WebQuery("<YOUR_APP_ID>", query="ninjas")
results = q.execute()
for result in results:
# outputs 760 results for me = 37 actual results each occuring 20 times
print result.title.encode('utf-8')
Original issue reported on code.google.com by
kristaps.rats@gmail.comon 4 Jan 2012 at 4:22