python爬虫——中国大学排名详细教程 (全注释)
使用步骤:
安装python
下载 requests 库 和 BeautifulSoup 库
复制代码按需求修改(或保持不变)
运行
import requests
from bs4 import BeautifulSoup
import bs4
def getHTMLText(url):
try:
r = requests.get(url, timeout=3...
原创
2019-10-21 19:01:48 ·
2269 阅读 ·
3 评论