开发者

YQL: data>RSS feed - with images only

开发者 https://www.devze.com 2023-03-15 13:17 出处:网络
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\',

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

精彩评论

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