urlwatch
urlwatch copied to clipboard
Ignore change based on result
Hello.
Is it possible to ignore a change if the result contains certain filter? For example. I am scanning an Amazon page for new listings. Occasionally a different page is shows where it states that the servers are busy. I use grep to find a key word (which is in the listing on Amazon and I am waiting for more to appear).
When occasionally a different page is shows where it states that the servers are busy I get a notification stating that the page changed because the initial grep from the working page is different.
Anyway to ignore a change based on it's result?
Thank you.
You might want to enable "compare with several old snapshots" for that job: https://urlwatch.readthedocs.io/en/latest/advanced.html#comparing-with-several-latest-snapshots
Thank you. I missed that option. Maybe an idea to implement a filter if triggered it will ignore the CHANGE? Would be a very good addition to the tool.
I’m planning on trying this out today - I don’t want to be notified of cases where the site reverts to showing are no Covid vaccine appointments available, just notified in the case where there are appointments available. Plan is to do a regex replace with random characters for the condition I want a notification, and null data for stuff I don’t want to see, and going back 3 snapshots. Should work for 99% of cases.