Commit 28d6a6db authored by wangmingming's avatar wangmingming

111

parent c8562f03
...@@ -201,7 +201,7 @@ while True: ...@@ -201,7 +201,7 @@ while True:
tlsV = f'chrome_{random.randint(105, 113)}' tlsV = f'chrome_{random.randint(105, 113)}'
tlsV = 'chrome_112' tlsV = 'chrome_112'
# session = tls_client.Session(tlsV) # session = tls_client.Session(tlsV)
session = requests.Session() session = requests.S
session.proxies = { session.proxies = {
'http': proxy, 'http': proxy,
'https': proxy, 'https': proxy,
......
...@@ -8,7 +8,7 @@ from pathlib import Path ...@@ -8,7 +8,7 @@ from pathlib import Path
import loguru import loguru
import requests import requests
import json import json
import tls_client # import tls_client
from bson import ObjectId from bson import ObjectId
import hashlib import hashlib
from pymongo import MongoClient from pymongo import MongoClient
...@@ -202,7 +202,8 @@ while True: ...@@ -202,7 +202,8 @@ while True:
proxy = random.choice([proxy, proxy1]) proxy = random.choice([proxy, proxy1])
tlsV = f'chrome_{random.randint(105, 113)}' tlsV = f'chrome_{random.randint(105, 113)}'
tlsV = 'chrome_112' tlsV = 'chrome_112'
session = tls_client.Session(tlsV) # session = tls_client.Session(tlsV)
session = requests.Session()
session.proxies = { session.proxies = {
'http': proxy, 'http': proxy,
'https': proxy, 'https': proxy,
......
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