Hello, everyone.
First off, I'd like to say that I'm very impressed with the potential of YQL, so I'd love to get some help in making it work with Twitter Search, which it just doesn't want to at the moment.
I'm using the following query:
use 'http://www.icanhaslayout.com/twitter.search.xml' as twitter.search;
select * from twitter.search where q='twitter';
The contents of that XML file are as follows:
<?xml version="1.0" encoding="UTF-8"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
<meta>
<author>Steven Merrill</author>
<documentationURL>http://thecodemill.biz/searchmonkey/twitter.user.profile</documentationURL>
<sampleQuery>select * from {table} where q='twitter'</sampleQuery>
</meta>
<bindings>
<select itemPath="feed.entry" produces="XML">
<urls>
<url>http://search.twitter.com/search.atom</url>
</urls>
<inputs>
<key id="q" type="xs:string" paramType="query" required="true"/>
</inputs>
</select>
</bindings>
</table>
I have verified that Twitter Search is returning valid ATOM, yet YQL refuses to parse it, and I get errors like the following:
<?xml version="1.0" encoding="UTF-8"?>
<query xmlns:yahoo="http://www.yahooapis.com/v1/base.rng" yahoo:count="0" yahoo:created="2009-03-11T06:58:47Z" yahoo:lang="en-US" yahoo:updated="2009-03-11T06:58:47Z" yahoo:uri="http://query.yahooapis.com/v1/yql?q=use+%27http%3A%2F%2Fwww.icanhaslayout.com%2Ftwitter.search.xml%27+as+twitter.search%3B%0Aselect+*+from+twitter.search+where+q%3D%27twitter%27%3B">
<diagnostics>
<url execution-time="10">http://www.icanhaslayout.com/twitter.search.xml</url>
<publiclyCallable>true</publiclyCallable>
<error>Invalid XML document
http://search.twitter.com/search.atom?q=tw...r</error> <url execution-time="1">http://search.twitter.com/search.atom?q=twitter</url>
<url execution-time="6" http-status-code="200" http-status-message="OK">http://search.twitter.com/search.atom?q=twitter</url>
<user-time>69</user-time>
<service-time>17</service-time>
<build-version>911</build-version>
</diagnostics>
<results/>
</query>
Can you shed any light on why YQL chokes on valid ATOM data?
Thanks in advance for the help!