This commit is contained in:
2025-01-07 18:48:04 +08:00
parent 167418b8c8
commit 6f3a7c2ecc
3 changed files with 10 additions and 13 deletions

13
main.py
View File

@ -16,7 +16,7 @@ from ftp import set_proxy
from ftp import upload_file_to_ftp
from ftp import upload_directory_to_ftp
from ftp import create_remote_directory
import requests
def launch_proxy():
print("开启代理...")
@ -129,12 +129,13 @@ def shot(chromedriver_path ,chrome_path):
ftp_username = matches[2]
ftp_password = matches[3]
# 调用上传函数
upload_directory_to_ftp(ftp_server, ftp_username, ftp_password, local_file_path, remote_file_path, proxy_url)
upload_directory_to_ftp(ftp_server, ftp_username, ftp_password, local_file_path, remote_file_path)
url = f"http://{matches[0]}:{matches[1]}/setup_2.php"
response = requests.get(url, cookies=session_cookies)
print(response.raise_for_status())
print(response.text)
# url = f"http://{matches[0]}:{matches[1]}/exam_setup.php"
# response = requests.get(url, cookies=session_cookies)
# print(response.raise_for_status())
# print(response.text)
time.sleep(5)
driver.get("http://125.64.9.222:8022/paper/paper.php")