Need help in detecting new content and notifications #968
Unanswered
Unrepentant-Atheist
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
So I'm trying to keep me up to date on new free games from https://www.reddit.com/r/gamedeals/new.json?limit=50 like this:
But I'm not really getting the desired results. I'm getting notifications whenever anything new is posted there. Even if I put
free
and100%
in extracting text, I'd get like 3-4 lines with either 100% or free, which is correct, but when new stuff is posted this extracted 100% or free gets moved around and it triggers new notifications.What I really want is compare snapshot x(now) to y(old), if new line or new text with 100% or free appears AND is different to snapshot y THEN trigger.
Not if it moves around, not if it's the same as before.
A current snapshot looks like that:

The diff looks like this and still triggers notifications:
Beta Was this translation helpful? Give feedback.
All reactions