Replies: 3 comments 3 replies
-
it's not clear if this is correct or not? what are you trying to achieve exactly? can you be more precise with some examples? its hard to follow
So are you saying that it works, but its in CSV although you want it in JSON or? can you provide an example how that JSON might look? it is JSON isnt it? or not? |
Beta Was this translation helpful? Give feedback.
-
This is the URL I am watching: https://guichet.public.lu/en/entreprises/outils/prix-prod-petrol.html This is the filter:
When I execute:
It returns:
If I use the api call to list watches, it does return json output, so I think all is ok with my main installation. |
Beta Was this translation helpful? Give feedback.
-
Sorry to revisit this after so long, but I have tried again and realised my explanation was not great. What I was originally after was to get the scrape to export the result as json file stored somewhere when it changed that could be downloaded, but if that's not possible then I would need to find a way to call the API (I'm using the data in a few places e.g. Zabbix and Home Assistant). What I was hoping when I called the api to get the latest scrape result with something like:
I would get back:
Rather than:
Does that make sense? I just used 0,1,2,3 for the field IDs as an example, but anything more appropriate would be fine that allows me to parse the result into the right places. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a successfully working watch that's using Playwright to grab 4 fields of data, the filters were created from the visual selector - one is text the other three are numerical values.
When I use API to grab the latest snapshot all I get are results as a few lines of text.
Is there a way for the API to return the data as formatted json? I need to be able grab the data with another application that import either json or xml.
Beta Was this translation helpful? Give feedback.
All reactions