fwefwf
This commit is contained in:
26
bit_tools.py
26
bit_tools.py
@@ -154,16 +154,16 @@ def group_add(groupName):
|
||||
|
||||
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
|
||||
# )
|
||||
if __name__ == '__main__':
|
||||
for i in Xstart.select().where(
|
||||
Xstart.x_id.is_null()
|
||||
):
|
||||
ips_info = Ips.select().where(Ips.start == 1,Ips.country == "法国").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