使用Python3和BeautifulSoup爬取笑话网站内容,并导入Excel

本文使用Python3和BeautifulSoup爬取网站内容,并导入Excel。html   #抓取糗事百科笑话的脚本 import urllib.request from bs4 import BeautifulSoup import xlwt #写入文件 import xlrd #打开excel文件 import time #返回文本式的html def getHTML(url):
相关文章
相关标签/搜索