python爬虫for循环错误求解答

import requests
import re
import os
#下载一个网页
ur1 = 'https://nyaso.com/comic/4240.html '
#模拟电脑浏览器向http发送请求
response = requests.get(ur1)
#编码方式
response.encoding = 'utf-8'
#目标小说网页源码
html = response.text
#漫画的名称
title = re.findall(r'

(.*?)

',html)[0]
#新建文件夹,保存漫画。
#os.mkdir("D:\家有女友\")
#获取每一章的信息(章节,url)
dl = re.findall(r'
.*?
',html,re.S)[0]
chapter_info_list: List[Any] = re.findall(r'style="color:#777;font-size:13px">(.*?)(.*?) <span style="color:#777;font-', dl)
#循环每一个章节,分别下载。
chapter_info in chapter_info_list;
#chapter_url= "
https://nyaso.com/comic/" %chapter_url
print(chapter_url,chapter_title)

难道你问题提出来,自己不看看自己发的是什么玩意么?你的代码根本都没有贴对,没法看。

从你的提问里可以明显看出你的态度,你并不是来求知的,只是把自己的任务一丢,就幻想人家给你收拾。请端正你的态度。

= = 并不知道你写的是什么代码,还有利用爬虫盗取别人资源真的好嘛,可以在线看就没有必要侵权