Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ g = Goose()
|
|
17 |
#
|
18 |
# return paper.cleaned_text
|
19 |
|
20 |
-
|
21 |
'''Extract text from url'''
|
22 |
ua = UserAgent()
|
23 |
headers = {'User-Agent':str(ua.chrome)}
|
|
|
17 |
#
|
18 |
# return paper.cleaned_text
|
19 |
|
20 |
+
def article_text_extractor(url: str):
|
21 |
'''Extract text from url'''
|
22 |
ua = UserAgent()
|
23 |
headers = {'User-Agent':str(ua.chrome)}
|