初始化mmonth
This commit is contained in:
10
爬虫-01/beautifulsoup.py
Normal file
10
爬虫-01/beautifulsoup.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from bs4 import BeautifulSoup
|
||||
with open('1.html','r',encoding='utf-8') as fp:
|
||||
data = fp.read()
|
||||
soup = BeautifulSoup(data,"lxml")
|
||||
#print(soup)
|
||||
#print(soup.head,type(soup.head))
|
||||
#print(soup.title)
|
||||
print(soup.a.attrs)
|
||||
#tag = BeautifulSoup(data,"lxml")
|
||||
#print()
|
||||
Reference in New Issue
Block a user