2024年10月26日self.url=url def getRobots(self): html = requests.get(self.url) # 存储robots with open('robots.txt', 'w', encoding='utf-8') as f: f.write(html.text) # 读取robots with open("robots.txt", 'r', encoding='utf8') as f: lines = f.readlines() flag = False domain = [] forl...