0

YQL Queries failing - recent event

This is the example from the YQL Console page (https://developer.yahoo.com/yql/console/#h=select+*+from+html+where+url%3D'http%3A%2F%2Ffinance.yahoo.com%2Fq%3Fs%3Dyhoo'+and+xpath%3D'%2F%2Fdiv%5B%40id%3D%22yfi_headlines%22%5D%2Fdiv%5B2%5D%2Ful%2Fli%2Fa') which has recently started to fail. Please let us know what's changed with the system.

select * from html where url='http://finance.yahoo.com/q?s=yhoo' and xpath='//div[@id="yfi_headlines"]/div[2]/ul/li/a'

now brings back

 "error": "The content of elements must consist of well-formed character data or markup.",
 "execution-start-time": "1",
 "execution-stop-time": "540",
 "execution-time": "539",
 "http-status-code": "200",
 "http-status-message": "OK",
 "content": "<http://finance.yahoo.com/q?s=yhoo>"

by
1 Reply
  • add the following at the end of the SELECT query and it works

    and compat="html5" i.e.

    select * from html where url='http://finance.yahoo.com/q?s=yhoo' and xpath='//div[@id="yfi_headlines"]/div[2]/ul/li/a' and compat="html5"

    0

Recent Posts

in YQL