Update app.py
Browse files
app.py
CHANGED
@@ -18,9 +18,9 @@ def take_screenshot(url):
|
|
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(
|
26 |
fn=take_screenshot,
|
|
|
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.text
|
24 |
|
25 |
iface = gr.Interface(
|
26 |
fn=take_screenshot,
|