Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Omkar008
/
VectorAIIndex
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
Omkar008
commited on
May 24, 2024
Commit
04b9025
·
verified
·
1 Parent(s):
9d18251
Create scrape.py
Browse files
Files changed (1)
hide
show
scrape.py
+4
-0
scrape.py
ADDED
Viewed
@@ -0,0 +1,4 @@
1
+
from bs4 import BeautifulSoup
2
+
3
+
def extract_text(html_doc:str):
4
+
return BeautifulSoup(html_doc , "html.parser").get_text().strip()