urlwatch icon indicating copy to clipboard operation
urlwatch copied to clipboard

Best practice for a bunch of keywords for several urls

Open Hans-Maulwurf opened this issue 10 months ago • 1 comments

Hello, I need some hints, how to realize my workflow. I want to check multiple sites (shops) for changes when searching keywords (products). In general, I would use an array of keywords and loop through it and make requests to each site/shop with placeholders in the url for the searched keyword. Something like [shop1.com?search={{product}}, shop2.com?productsearch={{product}}] and [productname1, productname2]

In my workflow-idea, I want to maintain these two objects, maybe in seperate files, and then led urlmagic do it's magic. Is it possible to do this with hooks? Is a hook able to edit the url before doing the real request? Or is a hook able to edit the list of urls that watches urlwatch?

Hans-Maulwurf avatar Oct 23 '23 11:10 Hans-Maulwurf

The best way would be to use some template language outside of urlwatch and then let it generate the urls.yaml file from that template. This sounds like a very involved workflow that's probably best served with outside tooling on top of urlwatch.

thp avatar Oct 23 '23 13:10 thp