mgokg commited on
Commit
2c8e171
·
verified ·
1 Parent(s): e043c80

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -3,9 +3,9 @@ from selenium import webdriver
3
  from selenium.common.exceptions import WebDriverException
4
  from selenium.webdriver.common.by import By
5
  from gradio_client import Client
6
- from selenium.webdriver.support.wait import WebDriverWait
7
- from selenium.webdriver.support import expected_conditions as EC
8
- from selenium.webdriver.chrome.options import Options
9
 
10
  def selenium(message):
11
  options = webdriver.ChromeOptions()
@@ -17,7 +17,7 @@ def selenium(message):
17
  url = 'https://www.spiegel.de'
18
  #<ol class="AmbQnf">
19
  wd.get(url)
20
- wd.implicitly_wait(5)
21
  element = driver.find_element(By.TAG_NAME, "body")
22
  time.sleep(2)
23
  return element.text
 
3
  from selenium.common.exceptions import WebDriverException
4
  from selenium.webdriver.common.by import By
5
  from gradio_client import Client
6
+ #from selenium.webdriver.support.wait import WebDriverWait
7
+ #from selenium.webdriver.support import expected_conditions as EC
8
+ #from selenium.webdriver.chrome.options import Options
9
 
10
  def selenium(message):
11
  options = webdriver.ChromeOptions()
 
17
  url = 'https://www.spiegel.de'
18
  #<ol class="AmbQnf">
19
  wd.get(url)
20
+ wd.implicitly_wait(10)
21
  element = driver.find_element(By.TAG_NAME, "body")
22
  time.sleep(2)
23
  return element.text