urlwatch icon indicating copy to clipboard operation
urlwatch copied to clipboard

Ignore change based on result

Open jpdsc opened this issue 3 years ago • 3 comments

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.

jpdsc avatar Sep 29 '20 18:09 jpdsc

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

thp avatar Sep 30 '20 06:09 thp

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.

jpdsc avatar Sep 30 '20 12:09 jpdsc

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.

jeffchenoweth avatar Feb 09 '21 18:02 jeffchenoweth