honey234 commited on
Commit
9a7c284
·
1 Parent(s): a3ff7fb
Files changed (2) hide show
  1. __pycache__/app.cpython-311.pyc +0 -0
  2. app.py +11 -1
__pycache__/app.cpython-311.pyc CHANGED
Binary files a/__pycache__/app.cpython-311.pyc and b/__pycache__/app.cpython-311.pyc differ
 
app.py CHANGED
@@ -70,7 +70,17 @@ profile = webdriver.FirefoxProfile()
70
  profile.set_preference("general.useragent.override", "Your User Agent String")
71
  browser_option.profile = profile
72
  logging.info(f"browser_version: {browser_option.browser_version}")
73
- browser_option.capabilities = capabilities
 
 
 
 
 
 
 
 
 
 
74
  browser_option.binary_location = '/usr/bin/firefox'
75
  # browser_option.binary_location = r'C:\Users\HP\.cache\selenium\firefox\win64\133.0\firefox.exe'
76
  # browser_option.add_argument("--disable-gpu")
 
70
  profile.set_preference("general.useragent.override", "Your User Agent String")
71
  browser_option.profile = profile
72
  logging.info(f"browser_version: {browser_option.browser_version}")
73
+ # browser_option.capabilities = {
74
+ # "moz:firefoxOptions": {
75
+ # "args": [
76
+ # "--headless",
77
+ # "--no-sandbox",
78
+ # "--disable-dev-shm-usage",
79
+ # "--ignore-certificate-errors",
80
+ # f"--user-agent={header}"
81
+ # ]
82
+ # }
83
+ # }
84
  browser_option.binary_location = '/usr/bin/firefox'
85
  # browser_option.binary_location = r'C:\Users\HP\.cache\selenium\firefox\win64\133.0\firefox.exe'
86
  # browser_option.add_argument("--disable-gpu")