2011-06-25 6 views
1

画像には、ヤフー(JSON)からのフィード:YQL:データ> RSSフィード - 私はRSSのニュースを取得するために、これを使用しているだけ

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

は、それは画像の内容にのみに返された項目を制限することは可能ですか?それは、画像の第一にアイテムを返すよう -

... content.typeは== '画像/ JPEG'

それとも "SORT BY ..何か":ような何か?

コンソールはここにある:http://developer.yahoo.com/yql/console

ありがとうございました。

+0

Nvm。自分の質問に答える:select * from xml url = 'http://rss.news.yahoo.com/rss/topstories'とchannel.item.content.type = 'image/jpeg' :) –

答えて

0
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

これは実際に動作します。ありがとうございました!! –

関連する問題