Re-stock & Price detection for JSON response #2991
Replies: 4 comments 1 reply
-
Moved to discussions because the issue template requires atleast the URL to be given or its impossible to test whats the URL? |
Beta Was this translation helpful? Give feedback.
-
I added a gist with the response JSON https://gist.github.com/wburningham/2741d1de8dec3fec291f9d8ec581e245 You should be able to use that as a URL for testing. @dgtlmoon let me know if I can provide something more. |
Beta Was this translation helpful? Give feedback.
-
Restock detection will NOT work for anything that is not LDJSON or similar specific JSON for machine readable restock/price information, it's just not what its designed for so yes, use JQ here :) |
Beta Was this translation helpful? Give feedback.
-
The conditions ability will be covered by #2952 soon :) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Version and OS
v0.49.2 on docker
Is your feature request related to a problem? Please describe.
I'm getting an error when creating a price watch for a plain HTTP response that is JSON.
Describe the solution you'd like
If I don't use "Re-stock & Price detection for single product pages" and use the standard " Webpage Text/HTML, JSON and PDF changes" option I can get a change detection working using a jq filter.
I don't want to do that because I want the price threshold functionality from a "Re-stock & Price detection for single product pages" watch.
Is this possible and I am missing something or would this require a code change?
Describe the use-case and give concrete real-world examples
The JSON response looks like:
I think the check is failing because the extruct pkg can't handle parsing JSON. If it could get pass that step, the jsonpath_ng
$..(price|Price)
query would seem to work.Beta Was this translation helpful? Give feedback.
All reactions