Hi, I don’t know you managed to get the covid data from this form (if I enter 163 into the ID field, I only get some geometry data). However, I do know that one can select “JSON” in the bottom of the form (the default is “HTML” which should give you an easily parsable format.
If you insist on <tr><td> …: You have to use JavaScript DOM methods like in the original Covid script from @eqsOne. Something along the lines
let table = document.getElementById("COVID-Tabelle"); /* if it has an ID... */
let tr = table.getElementsByTagName("TR");
tr.forEach(row => {
let td = tr.getElementsByTagName("TD");
...
})
Which is a pain… So if JSON works, use it.
Oh, and please tell me how to get the actual covid data with this form Thanks in advance
There’s now a widget tag, I would suggest that each widget example from now on be posted as it’s own post here in the Scriptable category with the widget tag. If I get a chance I’ll try to split this thread into multiple posts, but it might be a challenge!
I think that would be like an attempt to untie the Gordian knot. Several of the discussions cross back and forth suggesting you might then need to merge or duplicate them to have comprehensive chronological topics.
I’m sure as Scriptable widget code authors get the hang of posting a new topic rather than cross threading a single one, it will all sort itself out. Pretty much every widget posted seems to evolve over several iterations, so just start the new topic on the next iteration.
What might be worth considering is locking this thread to avoid further conversation knotting.
I’d like to keep this thread open for people who want to ask about the currently posted widgets - I have managed to extract some posts which seem relatively well organised thanks to the reply feature though. I’ll keep an eye on the thread and move any newly posted widgets into their own posts though.