开发者

YQL: data>RSS feed - with images only

I'm using this to retrieve RSS news feeds from Yahoo (JSON):

select * from xml where url in(  
  'http://rss.news.yahoo.com/rss/us',  
  'http://rss.news.yahoo.com/rss/world'  
)

Is it possible to limit returned items to only those with image content? Something like:

... WHERE content.type == 'image/jpeg'

Or maybe "SORT BY .. something" - so it returns items with images 1st?

Console is 开发者_高级运维here: http://developer.yahoo.com/yql/console

Thank you.


select * from xml where url in(  
  'http://rss.news.yahoo.com/rss/us',  
  'http://rss.news.yahoo.com/rss/world'  
) and itemPath="//item" and content.type = 'image/jpeg'  
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜