JSOUP可以与LocalStorage值一起使用吗?
I'm trying parse a website (f.e. google)
In Chrome local storage i see variables (key-value pairs)
And document content depends of this variables
Can i set it using jsoup?
Or I should use other tools for it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不,您无法使用自己的代码访问Chrome的内容(除非您可以为此找到利用)。您必须使用适当的
get
或发布
请求用JSOUP提出的请求,然后独自解析内容。请记住,JSOUP仅加载网站的HTML,因此,如果您的内容是从JS加载的,则必须找到另一种方法来获取它。No, you cannot access Chrome's content with your own code (unless you can find an exploit for that). You'll have to get the site's content with the proper
get
orpost
request made with jsoup and then parse the content by yourself. Just remember that jsoup only loads the HTML of the site, so if your content is loaded from JS, you'll have to find another way to get it.