YQL: html table is no longer supported

后端 未结 4 1340
渐次进展
渐次进展 2020-11-28 09:51

I use YQL to get some html-pages for reading information out of it. Since today I get the return message \"html table is no longer supported. See https://policies.yahoo.com/

4条回答
  •  孤街浪徒
    2020-11-28 10:04

    Even though YQL does not support the html table anymore, I've come to realize that instead of making one network call and parsing out the results it's possible to make several calls. For example, my call before would look like this:

    select html from rss where url="http://w1.weather.gov/xml/current_obs/KFLL.rss"
    

    Which should give me the information as such below

    Now I'd have to use these two:

    select title from rss where url="http://w1.weather.gov/xml/current_obs/KFLL.rss"

    select description from rss where url="http://w1.weather.gov/xml/current_obs/KFLL.rss"

    .. to get what I want. I don't know why they would deprecate something like this without a fallback clearly listed but you should be able to get your data this way.

提交回复
热议问题