Node.js 请求,等待5秒后再响应(Cloudflare,但不是Cloudflare)

Node.js 请求,等待5秒后再响应(Cloudflare,但不是Cloudflare),node.js,redirect,request,Node.js,Redirect,Request,该网站的功能类似于Cloudflare,但它的Cloudflare不是它的自定义保护 当我请求时,它会给我带有这个短语的html代码 在访问之前检查浏览器 这个过程是自动的。您的浏览器将重定向到您请求的内容 很快。 请允许最多5秒钟 如何在请求模块中执行延迟 options = { uri: url, jar: request.jar(), // Custom cookie jar headers: { 'User-Agent': 'Ubuntu Chro

该网站的功能类似于Cloudflare,但它的Cloudflare不是它的自定义保护

当我请求时,它会给我带有这个短语的html代码

在访问之前检查浏览器 这个过程是自动的。您的浏览器将重定向到您请求的内容 很快。 请允许最多5秒钟

如何在请求模块中执行延迟

  options = {
    uri: url,
    jar: request.jar(), // Custom cookie jar
    headers: {
      'User-Agent': 'Ubuntu Chromium/34.0.1847.116 Chrome/34.0.1847.116 Safari/537.36',
      'Cache-Control': 'private',
      'Accept': 'application/xml,application/xhtml+xml,text/html;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5'
    }
  }
  request(options, function(err, res, body){
    console.log(err)
    console.log(body)
  })