python中解析网页常用的两个库
对于新手来说是利器
from bs4 import BeautifulSoup
from lxml import etree
from bs4 import BeautifulSoup
soup=BeautifulSoup(html,'lxml')
kuai=sou.select('li.gl-item')#获取内容块
for i
python中解析网页常用的两个库
对于新手来说是利器
from bs4 import BeautifulSoup
from lxml import etree
from bs4 import BeautifulSoup
soup=BeautifulSoup(html,'lxml')
kuai=sou.select('li.gl-item')#获取内容块
for i