Commit 6acd511d authored by wang's avatar wang

收集环境

parent 945c3394
from flask import Flask, request, render_template, send_file
from flask import Flask, request, render_template, send_file, jsonify
app = Flask(__name__)
......@@ -26,8 +25,13 @@ def mouses():
def collectMouse():
print(request.data.decode())
return 'ok'
@app.route('/tl', methods=['POST'])
def tl():
print(request.data)
return jsonify({'reload':True})
if __name__ == '__main__':
# app.run(host='0.0.0.0',debug=True, port=11233)
app.run(host='0.0.0.0',debug=True, port=11223)
import random
username = 'brd-customer-hl_70986309-zone-isp'
......
......@@ -11,7 +11,6 @@ let keys = Object.keys(ENVS);
let uri;
if (plt !== 'darwin') {
uri = "mongodb://lcc-spider:JIUsfhiad&^@54.183.159.9:27017/?authSource=admin&directConnection=true";
}else{
uri = 'mongodb://root:123456@192.168.50.110:27017/'
......@@ -232,7 +231,7 @@ class PxBypass {
if (!this.is_local) {
let proxyRes = await axios({
method: 'post',
url: 'http://ymx-lcc.unififi.com/proxy/get-proxy',
url: 'http://aws-lcc.unififi.com/proxy/get-proxy',
headers: {
'Content-Type': 'application/json'
},
......@@ -294,7 +293,7 @@ class PxBypass {
let cks = Object.keys(this.cookies).map((v, k) => `${v}=${this.cookies[v]}`).join('; ')
this.log.info('cookie', cks)
let res = await axios.post('http://ymx-lcc.unififi.com/header/add', JSON.stringify({
let res = await axios.post('http://aws-lcc.unififi.com/header/add', JSON.stringify({
'brush_fromto': 'LAS-BOS',
'brush_fromdate': '2023-05-26',
'brush_header': headers,
......@@ -1074,7 +1073,7 @@ class PxBypass {
async function run() {
while (true) {
try {
// let res = await axios.get('http://ymx-lcc.unififi.com/header/task/pull/cookieF9?brush_name=test')
// let res = await axios.get('http://aws-lcc.unififi.com/header/task/pull/cookieF9?brush_name=test')
// let data = res.data;
//
let data = {
......
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