0

path input key for an arbitrary path

Hello,

I'm scraping a forum and I'd like the possibility to specify an arbitrary path in the YQL query.

Some thing like

CODE
SELECT * from my.table WHERE domain="mysite.org" AND path="path/to/forum" AND thread="12345"


This won't work:

CODE
<url>http://{domain}/{path}/showthread.php</url>

CODE
<inputs>
<key id="domain" type="xs:string" paramType="path" required="true" />
<key id="path" type="xs:string" paramType="path" required="true" />
<key id="t" as="thread" type="xs:integer" paramType="query" required="true" />
</inputs>


because {path} gets escaped.

I looked at the template uri specs implemented by YQL, and the only way seems to pass a list variable and join it with slashes but I don't know how to write the query.

Do I need to do this via javascript in an execute statement? No other way around?

Thanks,
Giacomo

by
0 Replies

Recent Posts

in YQL