Update app.py
Browse files
app.py
CHANGED
@@ -93,7 +93,7 @@ import lxml
|
|
93 |
|
94 |
def define(word):
|
95 |
url = f'https://www.dictionary.com/browse/{word}?s=t'
|
96 |
-
web_page =
|
97 |
definition= soup.find("meta", property="og:description")
|
98 |
st.write(definition)
|
99 |
|
|
|
93 |
|
94 |
def define(word):
|
95 |
url = f'https://www.dictionary.com/browse/{word}?s=t'
|
96 |
+
web_page = soup(requests.get(url, {}).text, "lxml")
|
97 |
definition= soup.find("meta", property="og:description")
|
98 |
st.write(definition)
|
99 |
|