为什么我的python抓一个html文本抓不全呢,只抓了一部分
from bs4 import BeautifulSoup
file = open("../index.html",'rb') #r以只读的方式打开文件 b二进制模式
html = file.read().decode('utf-8')
bs = BeautifulSoup(html,'html.parser')
t_list = bs.select('#a')
for item in t_list:
print(item)
html源文件发来看看,是不是原格式有问题,这样看不出来,发出来瞅瞅