Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -15,8 +15,8 @@ def web_scrape(url):
|
|
15 |
wd.set_window_size(1080, 720) # Adjust the window size here
|
16 |
wd.get(url)
|
17 |
wd.implicitly_wait(10)
|
18 |
-
|
19 |
-
content_value =
|
20 |
|
21 |
return content_value
|
22 |
except WebDriverException as e:
|
|
|
15 |
wd.set_window_size(1080, 720) # Adjust the window size here
|
16 |
wd.get(url)
|
17 |
wd.implicitly_wait(10)
|
18 |
+
meta_element = wd.find_element_by_tag_name("meta")
|
19 |
+
content_value = meta_element.get_attribute("content")
|
20 |
|
21 |
return content_value
|
22 |
except WebDriverException as e:
|