rgfewfger
This commit is contained in:
18
bit_tools.py
18
bit_tools.py
@@ -1,5 +1,9 @@
|
||||
import json
|
||||
import requests
|
||||
from peewee import fn
|
||||
|
||||
from models.ips import Ips
|
||||
from models.xstart import Xstart
|
||||
|
||||
url = "http://127.0.0.1:54345"
|
||||
headers = {'Content-Type': 'application/json'}
|
||||
@@ -149,3 +153,17 @@ def group_add(groupName):
|
||||
res = requests.post(f'{url}/group/add', data=json.dumps(json_data), headers=headers)
|
||||
|
||||
return res.json()
|
||||
|
||||
# if __name__ == '__main__':
|
||||
# for i in Xstart.select().where(
|
||||
# Xstart.x_id.is_null()
|
||||
# ):
|
||||
# ips_info = Ips.select().where(Ips.start == 1).order_by(fn.Rand()).get()
|
||||
#
|
||||
# update_proxy_Browser(
|
||||
# id=i.bit_id,
|
||||
# host=ips_info.host,
|
||||
# port=ips_info.port,
|
||||
# proxyUserName=ips_info.username,
|
||||
# proxyPassword=ips_info.password
|
||||
# )
|
||||
|
||||
Reference in New Issue
Block a user