11
This commit is contained in:
13
main.py
13
main.py
@ -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")
|
||||
|
Reference in New Issue
Block a user