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