试卷网专题

爬取第一试卷网高三数学试卷并下载到本地

import requestsimport reimport osfilename = '试卷\\'if not os.path.exists(filename):os.mkdir(filename)url = 'https://www.shijuan1.com/a/sjsxg3/list_727_1.html'headers = {"User-Agent":"Mozilla/5.0