On Mon, Feb 23, 2009 at 3:17 AM, Blair McBride <[email protected]> wrote:
> > Personally, I prefer using official APIs whenever reasonable. They're > supported, don't change, and require less network traffic. That said, > sometimes there is no API, or the API just sucks. > Exactly, also, a request for this sort of thing has trickled in from getsatisfaction: http://getsatisfaction.com/mozilla/topics/add_json_and_xml_parser_to_makesearchcommand I expect I'll have to look at including that in the very near future... In the mean time, makeSearchCommand now includes support for thumbnails in the preview, so you could do amazon like so: CmdUtils.makeSearchCommand({ name: "Amazon", url: " http://www.amazon.com/s/ref=nb_ss_gw?url=search-alias%3Dstripbooks&field-keywords={QUERY} ", parser: {container: "div.listView", title: "div.productTitle a", preview: "div.productTitle span.ptBrand", thumbnail: "div.productImage"} }); > > - Blair > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "ubiquity-firefox" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/ubiquity-firefox?hl=en -~----------~----~----~----~------~----~------~--~---
