当前位置:网站首页 > 更多 > 编程开发 > 正文

[Python] 快看漫画爬虫关键代码

作者:CC下载站 日期:2021-11-27 00:00:00 浏览:48 分类:编程开发

import requests
import re

url = 'https://www.kuaikanmanhua.com/web/comic/288718/'
for i in re.findall(f"}}\((.*?)\);", requests.get(url).text)[1][:-1].split(','):
    print(i.replace('"', '').replace(r'\u002F', '/')) if 'http' in i else ...


剩下的自己慢慢清洗。

您需要 登录账户 后才能发表评论

取消回复欢迎 发表评论:

关灯