开发者

Using YQL how can I select an item from a feed that contains a colon in its name?

开发者 https://www.devze.com 2023-01-06 17:18 出处:网络
I\'m using YQL to parse some web feeds, this one in particular. SELECT * FROM rss WHERE url=\'http://www.arena.net/blog/feed\'

I'm using YQL to parse some web feeds, this one in particular.

SELECT * FROM rss WHERE url='http://www.arena.net/blog/feed'

This query returns a bunch of fields, one of which looks like

content:encoded

How can I sele开发者_运维技巧ct that field to filter? I want to do something like this,

SELECT title, link, pubDate, content:encoded FROM rss WHERE url='http://www.arena.net/blog/feed'

but that is invalid. I've tried escaping with a slash without any luck.


SELECT title, link, pubDate, encoded
FROM rss
WHERE url='http://www.arena.net/blog/feed' 

Here's a console link.


Put the field name in back-quotes, of all things:

SELECT title, link, pubDate, `content:encoded` FROM rss
 WHERE url='http://www.arena.net/blog/feed'

Should work

0

精彩评论

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

关注公众号