Update app.py
Browse files
app.py
CHANGED
@@ -13,12 +13,13 @@ def take_screenshot(url):
|
|
13 |
wd = webdriver.Chrome(options=options)
|
14 |
wd.get(url)
|
15 |
|
16 |
-
wd.implicitly_wait(
|
17 |
#element=wd.find_element(By.TAG_NAME, "body")
|
18 |
#button_send = driver.find_element(By.ID, "L2AGLb").click()
|
19 |
-
element=wd.find_element(By.TAG_NAME, "body")
|
20 |
-
body_html =
|
21 |
return body_html
|
|
|
22 |
return element
|
23 |
|
24 |
iface = gr.Interface(
|
|
|
13 |
wd = webdriver.Chrome(options=options)
|
14 |
wd.get(url)
|
15 |
|
16 |
+
wd.implicitly_wait(3)
|
17 |
#element=wd.find_element(By.TAG_NAME, "body")
|
18 |
#button_send = driver.find_element(By.ID, "L2AGLb").click()
|
19 |
+
element = wd.find_element(By.TAG_NAME, "body")
|
20 |
+
body_html = element.get_attribute("outerHTML")
|
21 |
return body_html
|
22 |
+
|
23 |
return element
|
24 |
|
25 |
iface = gr.Interface(
|