Error in ThingHTTP "Parse"

11 ビュー (過去 30 日間)
Matias Tai
Matias Tai 2023 年 3 月 13 日
コメント済み: Safak Agustoslu 2023 年 3 月 19 日
I want to extract live data from this website "https://elberegner.dk/elpriser-time-for-time/". It's a danish website that tells you the price of electricity right now. I want it to show the price right now, so i can use it in a code. Yet the Xpath i use doesnt work. It gives me the error "Error parsing document, try a different parse string."
I use the Xpath code: //*[@id="root"]/div/div/div[2]/div[1]/div/div/p
I copied it where it says "Prisen lige nu" which is "price right now" in danish.
Any ideas what to do?
  1 件のコメント
Safak Agustoslu
Safak Agustoslu 2023 年 3 月 19 日
Could you please add text() words after xpath string. example: //*[@id="root"]/div/div/div[2]/div[1]/div/div/p/text()
Sometimes need this.
I tried and succes.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeClassical Control Design についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by