admin管理员组

文章数量:1026223

I wrote a scraper on a javascript heavy website (written in angular) and it works perfectly. But now after a few months I get error

SEVERE: ERROR Error: Uncaught (in promise)

My suspect is when I check the website using browser and in console, it seems Content Security Policy eval is blocked

Is there a way to still use com.gargoylesoftware.htmlunit or is it selenium the way to go?

I wrote a scraper on a javascript heavy website (written in angular) and it works perfectly. But now after a few months I get error

SEVERE: ERROR Error: Uncaught (in promise)

My suspect is when I check the website using browser and in console, it seems Content Security Policy eval is blocked

Is there a way to still use com.gargoylesoftware.htmlunit or is it selenium the way to go?

Share Improve this question asked Nov 17, 2024 at 12:04 jonathan tanjonathan tan 631 silver badge9 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

There is always a way :-) but maybe sometimes a long one. Please open an issue on github and provide as much information as possible and i will try to help.

I wrote a scraper on a javascript heavy website (written in angular) and it works perfectly. But now after a few months I get error

SEVERE: ERROR Error: Uncaught (in promise)

My suspect is when I check the website using browser and in console, it seems Content Security Policy eval is blocked

Is there a way to still use com.gargoylesoftware.htmlunit or is it selenium the way to go?

I wrote a scraper on a javascript heavy website (written in angular) and it works perfectly. But now after a few months I get error

SEVERE: ERROR Error: Uncaught (in promise)

My suspect is when I check the website using browser and in console, it seems Content Security Policy eval is blocked

Is there a way to still use com.gargoylesoftware.htmlunit or is it selenium the way to go?

Share Improve this question asked Nov 17, 2024 at 12:04 jonathan tanjonathan tan 631 silver badge9 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

There is always a way :-) but maybe sometimes a long one. Please open an issue on github and provide as much information as possible and i will try to help.

本文标签: htmlunit Content Security Policy eval is blockedStack Overflow