Reputation: 2995
YQL is returning two nodes for each result, so results[0] and results[1] are the same, 2 and 3 are the same, so on and so forth.
Anyone else had this issue?
Upvotes: 0
Views: 28
Reputation: 2995
Was able to find the answer only after posting this. The solution, for those that end up here, is to append your query with the following:
| unique(field="link", hideRepeatCount="true");
where 'link' is whatever field you want to be unique.
Note: The pipe is necessary, and this is posted at the end of the YQL query like so:
select date,title,link from rss where url="http://auburn.craigslist.org/search/web?format=rss" | unique(field="link", hideRepeatCount="true");
Upvotes: 1