快速爬取多张二次元图片

作者 by Tokeii / 2021-12-03 / 1 评论 / 2626 个足迹

import requests
from tqdm import tqdm
for i in tqdm(range(0,100)):
    url = "https://iw233.cn/API/Ghs.php"
    payload = {}
    headers = {}
    response = requests.request("GET", url, headers=headers, data=payload)
    img = response.content
    open(r"img\{0}.jpg".format(i),"wb").write(img)

独特见解

 评论 1 条
    • blueyst

      2021-12-09 17:53

       

      好网站,收藏了doge