使用requests库和BeautifulSoup库实现对最好大学网大学排名信息爬取 链接:http://www.zuihaodaxue.com/Greater_China_Ranking2019_0.html 代码: import requests from bs4 import BeautifulSoup import bs4 #从网络上获取大学排名网页内容 def getHTMLText(url): try: r =requests.get(url,timeout=30) r.raise_for_status() r.encodin