How do I pass a Yahoo Pipes item into a YQL query?

Posted by Joe Shaw on Stack Overflow See other posts from Stack Overflow or by Joe Shaw
Published on 2010-05-22T19:05:55Z Indexed on 2010/05/22 19:10 UTC
Read the original article Hit count: 218

Filed under:
|

One common thing to want to do in the Yahoo Pipes YQL element is pass in a Pipes value to the YQL query. For example:

select * from html.tostring where url='<someurl>' and xpath='//div[@id="foo"]'

and you want to pass in a dynamic value for <someurl>. Let's say that it's an RSS feed item's URL called item.link. Attempting to simply replace the quoted someurl with item.link gives you this error:

Invalid identifier item.link. me is the only supported identifier in this context

How can I pass this value in?

© Stack Overflow or respective owner

Related posts about yahoo-pipes

Related posts about yql