piaosanlang
网络爬虫教程

Updated 3 years ago

duohappy (@duohappy) started discussion #3

3 years ago · 0 comments

Open

手机抓包得到返回目标json格式的网址,进行请求后,发现错误

工具:fiddler + 夜神

app:简书

得到了类似的网址:https://s0.jianshuapi.com/v2/collections/3/subscribers?page=4&count=15.......

直接在PC浏览器中请求,提示{"error":[{"code":1,"message":"应用验证参数不正确"}]}

在Python代码中利用fiddler抓包得到的请求头,直接用request的get方法请求

报错:requests.exceptions.SSLError: ("bad handshake: Error([('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')],)",)

这种报错我还是第一次遇到,google得到的方法均无效,是不是要伪造证书,类似中间人攻击那种方式来解决这个问题?

No comments on this discussion.


to join this conversation on GitBook. Already have an account? Sign in to comment
Notifications

You’re not receiving notifications from this thread.


1 participant