一.解析网页信息 from bs4 import BeautifulSoup with open('C:/Users/michael/Desktop/Plan-for-combating-master/week1/1_2/1_2code_of_video/web/new_index.html','r') as web_data: Soup = BeautifulSoup(web_data,'lxml') print(Soup) 二.获取要爬取元素的位置 浏览器右键->审查元素->copy-&g…