Explorar o código

fix: 广东信息价爬取数据,设置fiddler4代理后错误

vian %!s(int64=4) %!d(string=hai) anos
pai
achega
ba6687f21d
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      web/over_write/crawler/guangdong_2018_price_crawler.js

+ 2 - 2
web/over_write/crawler/guangdong_2018_price_crawler.js

@@ -117,9 +117,9 @@ const TIME_OUT = 120000;
 const axiosInstance = axios.create({
   baseURL: 'http://api.zjtcn.com/user',
   timeout: TIME_OUT,
-  proxy: {
+  /* proxy: {
     host: "127.0.0.1", port: "8888" // Fiddler抓包,需要打开Fiddler否则会报connect error
-  },
+  }, */
   headers: {
     'Cache-Control': 'max-age=0',
     'Content-Type': 'application/x-www-form-urlencoded',