https://cn.investing.com/news/latest-news, 不知道这个网站用了什么反爬?

所有的请求头数据,cookie,代理ip都用了,还是没数据,一直提示Enable JavaScript and cookies to continue,

有大佬知道用了什么反爬手段吗?网站在标题那

阅读 3.7k
1 个回答

他这类似阿里云盾。

image.png

import requests as r

sess = r.session()

sess.get('https://cn.investing.com/cdn-cgi/images/trace/managed/js/transparent.gif?ray=7cef4f70bd11cfc4')

resp = sess.get('https://cn.investing.com/news/latest-news?__cf_chl_rt_tk=BgU4aHpaRUhn2ftZSjEzhs5vHMmnBED8csZ7bAstAV4-1685369315-0-gaNycGzNCjs')

# print(resp.content.decode())


resp2 = sess.get('https://cn.investing.com/cdn-cgi/challenge-platform/h/b/orchestrate/managed/v1?ray=7cef69e30bd8d02d')
print(resp2.content.decode())

这段JS太长了,下载下来 调试看下吧。 用了H5的history一些API

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题