mgokg commited on
Commit
2fd105c
·
verified ·
1 Parent(s): c14520a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -15,8 +15,8 @@ def selenium(prompt):
15
  try:
16
  url = 'https://www.google.com/search?q=zugverbindung+bad+kissingen+euerdorf'
17
  wd.get(url)
18
- wd.implicitly_wait(6)
19
- message = driver.find_element(By.TAG_NAME, "body")
20
 
21
  return message.text
22
 
 
15
  try:
16
  url = 'https://www.google.com/search?q=zugverbindung+bad+kissingen+euerdorf'
17
  wd.get(url)
18
+ wd.implicitly_wait(10)
19
+ message = driver.find_element(By.CLASS_NAME, "exp0")
20
 
21
  return message.text
22