标签:port pytho page www. import request htm rom html
from urllib.request import urlopen
from bs4 import BeautifulSoup
html=urlopen("http://www.pythonscraping.com/pages/page1.html")
bsobj=BeautifulSoup(html.read())
print(bsobj.h1)
标签:port pytho page www. import request htm rom html
原文地址:https://www.cnblogs.com/yl9201/p/9405604.html