![](/img/trans.png)
[英]Javascript : How do I filter the data on the UI based without calling the API again and again using Fetch API?
[英]How do I fetch data without cloudflare in JavaScript?
提取不起作用
const response = await fetch(url)
const html = await response.json()
它返回一个带有 Cloudflare 的页面!
我应该怎么办?
要绕过 cloudflare,你可以尝试这个包cloudcraper ,或者你可以使用无头 Chrome 获取内容,流行的是Puppeteer 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.