YQL and xpath

You must Login before you can answer or comment on any questions.

Hi *,

I try to get a div with ID:

select * from html where url="http://www.pflege.de/blog/2012/07/fahrrad-fahren-der-ideale-sport-fuer-das-alter/" AND xpath="//*[@id=\"leftsingle\"]"
and this is on console:
"Query syntax error(s) [line 1:133 missing EOF at 'leftsingle']";
The xpath I have extracted with firebug from web page .

Any ideas whats going wrong?

Rainer

1 Answer

Accepted Answer

This works in yql console:

select * from html where url="http://www.pflege.de/blog/2012/07/fahrrad-fahren-der-ideale-sport-fuer-das-alter/" AND xpath="//*[@id='leftsingle']"

Your Answer

Think you can help? Login to answer this question!