flatindo commited on
Commit
05d5483
·
1 Parent(s): fb6b3ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -15,9 +15,10 @@ 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
- page_content = wd.page_source
 
19
 
20
- return page_content
21
  except WebDriverException as e:
22
  return "error handle website"
23
  finally:
 
15
  wd.set_window_size(1080, 720) # Adjust the window size here
16
  wd.get(url)
17
  wd.implicitly_wait(10)
18
+ page_content = wd.find_element_by_name("name")
19
+ content_value = page_content.get_attribute("content")
20
 
21
+ return content_value
22
  except WebDriverException as e:
23
  return "error handle website"
24
  finally: