|
|
@ -1,13 +1,14 @@
|
|
|
|
import json
|
|
|
|
import json
|
|
|
|
|
|
|
|
import multiprocessing
|
|
|
|
import socket
|
|
|
|
import socket
|
|
|
|
import struct
|
|
|
|
import struct
|
|
|
|
import sys
|
|
|
|
import sys
|
|
|
|
import threading
|
|
|
|
|
|
|
|
from configparser import ConfigParser
|
|
|
|
from configparser import ConfigParser
|
|
|
|
from json import JSONDecoder
|
|
|
|
from json import JSONDecoder
|
|
|
|
|
|
|
|
|
|
|
|
from msedge.selenium_tools import Edge
|
|
|
|
from msedge.selenium_tools import Edge
|
|
|
|
from msedge.selenium_tools import EdgeOptions
|
|
|
|
from msedge.selenium_tools import EdgeOptions
|
|
|
|
|
|
|
|
|
|
|
|
sys.path.append(r'F:\Users\28587\dcs')
|
|
|
|
sys.path.append(r'F:\Users\28587\dcs')
|
|
|
|
from dcs.tests.zhiwang import *
|
|
|
|
from dcs.tests.zhiwang import *
|
|
|
|
from dcs.tools import message_process as mp
|
|
|
|
from dcs.tools import message_process as mp
|
|
|
@ -76,7 +77,7 @@ def crawl(request_map) -> dict:
|
|
|
|
return result_map
|
|
|
|
return result_map
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Client(threading.Thread):
|
|
|
|
class Client(multiprocessing.Process):
|
|
|
|
def __init__(self, server_ip, server_port, local_ip, local_port):
|
|
|
|
def __init__(self, server_ip, server_port, local_ip, local_port):
|
|
|
|
super(Client, self).__init__()
|
|
|
|
super(Client, self).__init__()
|
|
|
|
self.server_ip = server_ip
|
|
|
|
self.server_ip = server_ip
|
|
|
|