You are writing a comment about Search Recipes for Yahoo's BOSS in Python, here is a quick summary:

This entry is a bit of a cookbook for using Yahoo's Python library for accessing the BOSS Mashup Framework. It has full examples for searching the web, images, news , for paginating results, and for limiting searches to specific domains.


You are responding to this comment written by Will Larson on July 14th 2008, 17:44.

Jim,

I haven't tried this on Windows. However, based on the error message it is either failing on parsing your config.json file or at parsing the response recieved from Yahoo's service. I would first make sure that your config.json is properly formed (seeing the entire traceback would make it easier to eliminate this possibility), and that you entered a valid BOSS APP ID into it.

Beyond that, it would seem that you're receiving invalid data, which doesn't quite make sense to me. Just to verify things were correct I ran through the first example just now and it still works for me.

>>> from yos.boss import ysearch
>>> from yos.yql import db
>>> data = ysearch.search("Django",count=10)
>>> table = db.create(data=data)
>>> table.rows[0]
{u'dispurl': u'www.<b>djangoproject.com</b>', u'title': u'<b>Django</b> | The Web framework for perfectionists with deadlines', u'url': u'http://www.djangoproject.com/', u'abstract': u'<b>Django</b> is a high-level Python Web framework that encourages rapid development and clean, pragmatic design. <b>...</b> <b>Django</b> focuses on automating as much as possible <b>...</b>', u'clickurl': u'http://www.djangoproject.com/', u'date': u'2008/06/19', u'size': u'8524'}
>>> 

If you post a full traceback I can try to be a bit more helpful.

Will


Please be aware that comment forms go stale after one hour.





Comments may make use of LifeFlow MarkDown. Raw html will be escaped.


Quick Introduction to LifeFlow MarkDown Syntax

A highlighted code block:

@@ ruby
def a (b, c):
  b * c
end
@@

Other common languages work as well: scheme, python, java, html, etc.

Other markdown syntax:

 ### This is an h3 title
#### This is an h4 title
**this is bold**
*this is italics*

1. This is an
2. ordered list

* And an unordered
* list too

[this is a link](http://www.lethain.com/ "Lethain")