Commit 6e6a8eb2 authored by wang's avatar wang

添加环境提取

parent 571a6386
......@@ -40,8 +40,8 @@ class PxBypass {
prox = `http://user-uni001-region-us-sessid-${randint(1000, 5000)}-sesstime-5-keep-true:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600`
// prox = `http://uni00001_custom_zone_US_sid_${randint(67336718, 67336728)}_time_5:q39CEBTs5A@us.foxyip.com:7778`
// prox = `http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:${randint(10000, 13500)}`
prox = 'http://127.0.0.1:8890'
tlsUrl = 'http://127.0.0.1:58000/tls/forward'
// prox = 'http://127.0.0.1:8890'
// tlsUrl = 'http://127.0.0.1:58000/tls/forward'
constructor() {
this.log = log4js.getLogger('px')
......@@ -355,6 +355,13 @@ class PxBypass {
}
async function run() {
let res = await axios.get('http://ymx-lcc.unififi.com/header/task/pull/cookieF9?brush_name=test')
let data = res.data;
// if r.json()['status'] != 0:
// # logger.debug(f'不需要刷值')
// # time.sleep(10)
// # continue
if (data.status === 0) {
for (let i = 0; i < 1; i++) {
try {
let px = new PxBypass()
......@@ -388,6 +395,8 @@ async function run() {
}
}
await sleep(10000)
// }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment