You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
request({url:"https://www.facebook.com/",proxy:"http://127.0.0.1:1084"},function(error,response,body){console.log("proxy="+response.statusCode)if(!error&&response.statusCode==200){console.log(body);}});//1084 is ss proxy
设置method
options.method= 'GET'
设置referer
options.headers.Referer=referer;
request默认是不支持cookies,需要开启
var j = request.jar();options.jar=j
这是操作cookies的一个例子
如果需要传参数,可以使用form,例如
设置代理(这样可以使用fiddler抓取请求了)
proxy: "http://127.0.0.1:8888", //for fiddler
抓取被墙的网站:
request文档地址
The text was updated successfully, but these errors were encountered: