urlwatch icon indicating copy to clipboard operation
urlwatch copied to clipboard

Web pages using Local Storage instead of cookies are not supported

Open Hitaro opened this issue 5 years ago • 2 comments

The site I want to watch periodically does not have any cookies! but there are some stuff under 'Local Storage' as you see in the image below:

image

How should I record them in the file urls.yaml?

Hitaro avatar Sep 01 '20 05:09 Hitaro

Local storage isn't supported at the moment. You might have luck with the "browser" job type and pyppeteer, but right now there's no way to specify/inject local storage data as such. Have you checked if it would work with cookies too if e.g. local storage isn't available? Also, you could look at how the page does REST API calls and just watch those (local storage is only accessible via client-side javascript, so chances are the REST API calls are self-contained if there are no other cookies set).

thp avatar Sep 06 '20 10:09 thp

Have you checked if it would work with cookies too if e.g. local storage isn't available?

Indeed, I have no idea how to implement this condistion!

Hitaro avatar Sep 18 '20 18:09 Hitaro