最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

htmlunit Content Security Policy eval is blocked - Stack Overflow

programmeradmin8浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论