Cpp4App_test / SEM /get_pp.py
HaochenGong
create
f1554a2
import ssl
from bs4 import BeautifulSoup
import urllib.request
ssl._create_default_https_context = ssl._create_unverified_context
def get_text(url):
response=urllib.request.urlopen(url)
html=response.read()
soup = BeautifulSoup(html,features="html.parser")
text = soup.get_text()
return text