import requests,bs4
headers={"user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36""(KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36","referer": "https://sf-item.taobao.com/json/get_notice_attach.htm?"}
urls=['https://sf-item.taobao.com/json/get_notice_attach.htm?project_id=2930800','https://sf-item.taobao.com/json/get_notice_attach.htm?project_id=2950499']
for i in [0,1]:
html=requests.get(urls[i],headers=headers).text
sp=bs4.BeautifulSoup(html,'html.parser')
ta=sp.find('table')
print(ta)
你把第二个地址放到浏览器里面查看,本身就没有表格