Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
lightmate
/
EchoTruth
like
0
Running
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
81f2695
EchoTruth
/
utils
/
text_extraction.py
lightmate
first stable version
53f4669
verified
about 2 months ago
raw
Copy download link
history
blame
Safe
187 Bytes
from
newspaper
import
Article
def
extract_text_from_url
(
url
):
article = Article(url)
article.download()
article.parse()
return
article.title +
". "
+ article.text