快看漫画爬虫关键代码

Python

快看漫画爬虫关键代码

年份
2021
分类
Python

jpg

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 ...

1
剩下的自己慢慢清洗。