[SOLVED] Need help to scrape data from website

Hi, did anyone explain why not stick to $.data[0] ? For me it gives the same response, i.e. the attributes from the first entry under data, i.e. [0]

Hi Folks!

Hope someon stil read this topic. I asking help. I have some scrap sensor in my HA config but i can not solve this one:

resource: https://gridradar.net/charts/map/map_be.php?lang=en

select: "#\/8\/2 > td:nth-child(2) > span:nth-child(1) > span:nth-child(1)"

I try it scrap as rest sensor, with value_template:
value_template: "{{ value_json['8']['2'] }}"
didn’t works.

May i ask your help please?

Gridradar has an api. Try it.

Thank you nickrout, they have 900s data delay on API solutions. So i try to find other solution to monitor frequency.

Maybe any idea to srac this data?

What data are you trying to extract from it? That url gives this

[
    [
        8.73,
        47.49,
        "offline",
        0,
        0,
        "raw",
        "N966",
        "Winterthur"
    ],
    [
        0.1,
        43.7,
        "offline",
        0,
        0,
        "raw",
        "N993",
        "Aignan"
    ],
    [
        11.81,
        48.03,
        0,
        4,
        1,
        "raw",
        "N759",
        "Oberpframmern"
    ],
    [
        10.5,
        48.8,
        "offline",
        0,
        0,
        "raw",
        "N692",
        "Reimlingen"
    ],
    [
        9.1,
        50.3,
        0,
        4,
        1,
        "raw",
        "N738",
        "B\u00fcdingen"
    ],
    [
        11.1,
        48,
        0,
        3,
        -1,
        "raw",
        "N965",
        "Schondorf"
    ],
    [
        7.6,
        53.1,
        0,
        6,
        -1,
        "raw",
        "N198",
        "Ostrhauderfehn"
    ],
    [
        6.1,
        50.9,
        0,
        3,
        -1,
        "raw",
        "N352",
        "Herzogenrath"
    ],
    [
        10.9,
        49.7,
        0,
        0,
        1,
        "raw",
        "N136",
        "Zeckern"
    ],
    [
        8.7,
        53.2,
        0,
        5,
        1,
        "raw",
        "N163",
        "Bremen"
    ],
    [
        19.1,
        47.5,
        0,
        4,
        -1,
        "raw",
        "N682",
        "Budapest"
    ],
    [
        10.8,
        48.7,
        0,
        3,
        -1,
        "raw",
        "N212",
        "Schafstall"
    ],
    [
        8.9,
        48.5,
        0,
        6,
        1,
        "raw",
        "N301",
        "Rottenburg"
    ],
    [
        25.1,
        35.3,
        0,
        2,
        1,
        "raw",
        "N578",
        "Kreta"
    ],
    [
        8.5,
        49.5,
        50.013,
        29,
        70,
        "raw",
        "N767",
        "Mannheim"
    ],
    [
        16.3,
        48.2,
        50.016,
        196,
        -3,
        "raw",
        "N876",
        "Wien"
    ],
    [
        14,
        51.6,
        0,
        5,
        1,
        "raw",
        "N655",
        "Gro\u00dfr\u00e4schen"
    ],
    [
        11.82,
        48.27,
        0,
        4,
        1,
        "raw",
        "N239",
        "Moosinning"
    ],
    [
        13.2,
        46.6,
        0,
        6,
        1,
        "raw",
        "N994",
        "Reisach"
    ],
    [
        7.6,
        51.1,
        0,
        5,
        -1,
        "raw",
        "N220",
        "Meinerzhagen"
    ],
    [
        23.4,
        45.8,
        "offline",
        0,
        0,
        "raw",
        "N196",
        "Sibiu"
    ],
    [
        8.2,
        49.4,
        0,
        3,
        -1,
        "raw",
        "N371",
        "Neustadt"
    ],
    [
        20.5,
        44.8,
        0,
        1,
        -1,
        "raw",
        "N357",
        "Belgrad"
    ],
    [
        7.2,
        47.6,
        50.014,
        102,
        111,
        "raw",
        "N630",
        "Belfort Cedex"
    ],
    [
        -2.2,
        53.5,
        50.039,
        47,
        18,
        "raw",
        "N331",
        "Manchester"
    ],
    [
        -4.5,
        36.7,
        0,
        5,
        -1,
        "raw",
        "N188",
        "Malaga"
    ],
    [
        -1,
        52,
        50.039,
        58,
        30,
        "raw",
        "N451",
        "Buckingham"
    ],
    [
        0.3,
        51.6,
        50.039,
        295,
        27,
        "raw",
        "N880",
        "London"
    ],
    [
        -4.2,
        55.9,
        0,
        5,
        -1,
        "raw",
        "N589",
        "Strathclyde"
    ],
    [
        10.8,
        59.7,
        0,
        1,
        1,
        "raw",
        "N137",
        "Aas"
    ],
    [
        2.7,
        39.6,
        0,
        3,
        -1,
        "raw",
        "N502",
        "Mallorca"
    ],
    [
        33.3,
        35.1,
        0,
        1,
        1,
        "raw",
        "N450",
        "Zypern"
    ],
    [
        18.1,
        59.3,
        50.037,
        274,
        0,
        "reference",
        "N634",
        "Stockholm"
    ],
    [
        24.3,
        57.1,
        0,
        6,
        -1,
        "raw",
        "N103",
        "Riga"
    ],
    [
        -81.7,
        30.3,
        "offline",
        0,
        0,
        "raw",
        "N759",
        "Jacksonville"
    ],
    [
        "27.07.2024 13:48:07",
        0.017
    ]
]

What part of that were you wanting in HA?

from this section:

    [
        8.7,
        53.2,
        0,
        5,
        1,
        "raw",
        "N163",
        "Bremen"
    ],

the second one, which in your example is 53.2,

Thanky you for you help!