New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
详情页的章节目录需要点击按钮后,才会触发循环请求章节数据,返回html 的json数据,请问各位大佬这个章节目录规则该怎么写。 #2193
Comments
1、用js手动发送请求 |
@821938089 大佬,第3点能简单举例下,还是没明白 |
var headers = {"User-Agent": "..."}
java.get("https://m.idejian.com/catalog?bookId=12524852", headers) |
val map = mapOf<String,String>("User-Agent" to "Mozilla/5.0 (Linux; Android 11) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4356.6 Safari/537.36") 这样可以吗? |
你这是干嘛用的,阅读的规则只能写js啊,执行不了kotlin |
这样报错 |
分号打错,变量名也不对 |
这样写 java.get(...).body() |
java.get的第二个参数是协议头,不要把不是协议头的东西写进去 还是有以下问题: |
你这个规则现在只获取到了json文本,需要把他处理成一个数组 |
1、详情页的章节目录需要点击按钮后,才会触发循环请求章节数据,返回html 的json数据,请问各位大佬这个章节目录规则该怎么写。
书库网站:https://www.idejian.com/
2、java.ajax 支持设置heads 吗?
3 、能否访问请求网络?
//实现重定向拦截,返回Connection.Response
java.get(url: String, headers: Map<String, String>)
java.post(urlStr: String, body: String, headers: Map<String, String>)
@gedoor 大佬这种能处理吗?
The text was updated successfully, but these errors were encountered: