吾爱破解 - 52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 421|回复: 10
收起左侧

[下载转存] 求帮忙把相册里照片下载下来

[复制链接]
zhangcanyun 发表于 2024-10-17 16:08

最佳答案

查看完整内容

https://wwck.lanzoub.com/iAew42crfu4b

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

XiaoYanMr 发表于 2024-10-17 16:08
yucevip 发表于 2024-10-17 16:12
genway2014 发表于 2024-10-17 16:15
 楼主| zhangcanyun 发表于 2024-10-17 16:15
应该是照片
genway2014 发表于 2024-10-17 16:17
你只能截图,或者找老师要图片
樂青影 发表于 2024-10-17 16:26
里面有图片呀,调试的时候能看出来是一张张出来的图片,不是视频
myao 发表于 2024-10-17 16:41
总共有36张图片。
樂青影 发表于 2024-10-17 16:44
[Python] 纯文本查看 复制代码
import requests
import os

# 图片链接列表
urls = [
    "https://s1pic.kagirl.cn/qy_13743729371857?imageMogr2/auto-orient/thumbnail/1000x/",
    "https://s1pic.kagirl.cn/qy_13743729428970?imageMogr2/auto-orient/thumbnail/1000x/",
    "https://s1pic.kagirl.cn/qy_13743729488665?imageMogr2/auto-orient/thumbnail/1000x/",
    "https://s1pic.kagirl.cn/qy_13743729533092?imageMogr2/auto-orient/thumbnail/1000x/",
    "https://s1pic.kagirl.cn/qy_13743729584424?imageMogr2/auto-orient/thumbnail/1000x/",
    "https://s1pic.kagirl.cn/qy_13743729654667?imageMogr2/auto-orient/thumbnail/1000x/",
    "https://s1pic.kagirl.cn/qy_13743729746289?imageMogr2/auto-orient/thumbnail/1000x/",
    "https://s1pic.kagirl.cn/qy_13743729794723?imageMogr2/auto-orient/thumbnail/1000x/",
    "https://s1pic.kagirl.cn/qy_13743752265844?imageMogr2/auto-orient/thumbnail/1000x/",
    "https://s1pic.kagirl.cn/qy_13743752335381?imageMogr2/auto-orient/thumbnail/1000x/",
    "https://s1pic.kagirl.cn/qy_13743752369095?imageMogr2/auto-orient/thumbnail/1000x/",
    "https://s1pic.kagirl.cn/qy_13743752436661?imageMogr2/auto-orient/thumbnail/1000x/",
    "https://s1pic.kagirl.cn/qy_13743752492655?imageMogr2/auto-orient/thumbnail/1000x/",
    "https://s1pic.kagirl.cn/qy_13743752546250?imageMogr2/auto-orient/thumbnail/1000x/",
    "https://s1pic.kagirl.cn/qy_13743752605184?imageMogr2/auto-orient/thumbnail/1000x/",
    "https://s1pic.kagirl.cn/qy_13743752641104?imageMogr2/auto-orient/thumbnail/1000x/",
    "https://s1pic.kagirl.cn/qy_13743752672225?imageMogr2/auto-orient/thumbnail/1000x/",
    "https://s1pic.kagirl.cn/qy_13743757323236?imageMogr2/auto-orient/thumbnail/1000x/",
    "https://s1pic.kagirl.cn/qy_13743757337714?imageMogr2/auto-orient/thumbnail/1000x/",
    "https://s1pic.kagirl.cn/qy_13743757374234?imageMogr2/auto-orient/thumbnail/1000x/",
    "https://s1pic.kagirl.cn/qy_13743757411451?imageMogr2/auto-orient/thumbnail/1000x/",
    "https://s1pic.kagirl.cn/qy_13743757476848?imageMogr2/auto-orient/thumbnail/1000x/",
    "https://s1pic.kagirl.cn/qy_13743757506046?imageMogr2/auto-orient/thumbnail/1000x/",
    "https://s1pic.kagirl.cn/qy_13743757554594?imageMogr2/auto-orient/thumbnail/1000x/",
    "https://s1pic.kagirl.cn/qy_13743757594234?imageMogr2/auto-orient/thumbnail/1000x/",
    "https://s1pic.kagirl.cn/qy_13743757651275?imageMogr2/auto-orient/thumbnail/1000x/"
]

# 请求头
headers = {
    'Host': 's1pic.kagirl.cn',
    'Method': 'GET',
    'Path': '/qy_13743729428970?imageMogr2/auto-orient/thumbnail/1000x/',
    'Scheme': 'https',
    'Accept': 'image/avif,image/webp,image/apng,image/svg+xml,image/*,*/*;q=0.8',
    'Accept-Encoding': 'gzip, deflate, br, zstd',
    'Accept-Language': 'zh-CN,zh;q=0.9',
    'Cache-Control': 'no-cache',
    'DNT': '1',
    'Pragma': 'no-cache',
    'Referer': 'https://go07.gondar.cn/',
    'Sec-CH-UA': '"Chromium";v="128", "Not;A=Brand";v="24", "Google Chrome";v="128"',
    'Sec-CH-UA-Mobile': '?0',
    'Sec-CH-UA-Platform': '"Windows"',
    'Sec-Fetch-Dest': 'image',
    'Sec-Fetch-Mode': 'no-cors',
    'Sec-Fetch-Site': 'cross-site',
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36'
}

# 下载图片并保存
for i, url in enumerate(urls):
    response = requests.get(url, headers=headers)
    if response.status_code == 200:
        file_name = f"image_{i + 1}.webp"
        with open(file_name, 'wb') as f:
            f.write(response.content)
        print(f'下载成功: {file_name}')
    else:
        print(f'下载失败: {url}, 状态码: {response.status_code}')
grekevin 发表于 2024-10-17 18:24
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

返回列表

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2024-12-15 06:35

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表