set proxy config in params.py
This commit is contained in:
+6
-5
@@ -6,6 +6,7 @@ import time
|
||||
|
||||
from playwright.sync_api import sync_playwright
|
||||
|
||||
from params import PROXY_SERVER, PROXY_USERNAME, PROXY_PASSWORD
|
||||
from pojo.contact_pojo import ContactPojo
|
||||
from utils.excel_reader import ExcelHelper
|
||||
|
||||
@@ -109,9 +110,9 @@ class CommandorPage:
|
||||
|
||||
def launch_page(ready_for_otp) -> threading.Event:
|
||||
proxy = {
|
||||
"server": "http://gw.ntnt.io:5959",
|
||||
"username": "panleicim-cc-fr-sid-192012",
|
||||
"password": "M3PZAXgW5V27"
|
||||
"server": PROXY_SERVER,
|
||||
"username": PROXY_USERNAME,
|
||||
"password": PROXY_PASSWORD
|
||||
}
|
||||
contact = ContactPojo(phone_number="+33758735284", passport_number="9537551179", last_name="Hong", first_name="Fan",
|
||||
mail="hongfan@outlook.com", ccid="", position=0)
|
||||
@@ -119,10 +120,10 @@ def launch_page(ready_for_otp) -> threading.Event:
|
||||
return page.start_page(proxy, contact, ready_for_otp)
|
||||
|
||||
|
||||
def wait_for_otp(event: threading.Event, commandorPage: CommandorPage):
|
||||
def wait_for_otp(event: threading.Event, commandor: CommandorPage):
|
||||
sec = input("Press Enter otp to continue...\n")
|
||||
print("input otp is: " + sec)
|
||||
commandorPage.otp_value = sec
|
||||
commandor.otp_value = sec
|
||||
event.set()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user