skip to Main Content

JSON to CSV (python)

i have a JSON file as follow: { "temperature": [ { "ts": 1672753924545, "value": "100" } ], "temperature c1": [ { "ts": 1672753924545, "value": "30.99036523512186" } ], "conductivite_c1": [ { "ts": 1672753924545, "value": "18.195760116755046" } ], "pression_c1": [ { "ts":…

VIEW QUESTION

Json – Selecting elements with querySelector

<div id="~" class="dm-post-0 well clearfix post listview" data-identifier="~" data-relative="https://url_that_i_want_to_capture" data-feed="~"> let convertEntries = () => { "use strict"; let target = [...document.getElementsByClassName("listview")]; let result = []; target.forEach((element) => { result.push({ title: element.querySelector(".list-header strong").textContent, url: element.querySelector("#listview").dataset.relative, }); }); return result; };…

VIEW QUESTION
Back To Top
Search