import re import requests import csv domain = '; resp = reque(domain) re = "gb2312" obj1 = re.compile(r'src="/templets/img; .*?<a href="/(?P<link>.*?)" class="ulink">',re.S) obj2 = re.compile(r'<div class="title_all"><h1><font color=#07519a>(?P<name>.*?)</font></h1>.*?<a target="_blank" href="(?P<downLoad>.*?)"><strong>',re.S) result1 = obj1.finditer) hrefList = [] for i in result1: url = "{}".forma("link")) (url) f = open("day4Da;,mode="w") csvwriter = c(f) for m in hrefList: resp2 = reque(m) re = "gb2312" result2 = obj2.searc) dic = re() print(dic) c())