吾爱破解 - LCG - LSG |安卓破解|病毒分析|www.52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 515|回复: 5
收起左侧

[学习记录] 每日摸鱼日报~

[复制链接]
typps 发表于 2024-3-20 16:55
[Python] 纯文本查看 复制代码
import requests
from datetime import date
import os


# 获取当前日期
current_date = date.today()
date_str = f'D:/每日日报/{current_date}/' # 本地想要下载到的地址
if not os.path.exists(date_str):
    # 创建输出目录
    os.makedirs(date_str)

# 发起GET请求
image_data = requests.get('https://dayu.qqsuu.cn/moyuribao/apis.php')
with open(f'{date_str}{current_date}_摸鱼日报.jpg', 'wb') as f:
        f.write(image_data.content)

# 发起GET请求
image_data = requests.get('https://dayu.qqsuu.cn/moyurili/apis.php')
with open(f'{date_str}{current_date}_摸鱼日历.jpg', 'wb') as f:
        f.write(image_data.content)

# 发起GET请求
image_data = requests.get('https://dayu.qqsuu.cn/mingxingbagua/apis.php')
with open(f'{date_str}{current_date}_明星八卦.jpg', 'wb') as f:
        f.write(image_data.content)

# 发起GET请求
image_data = requests.get('https://dayu.qqsuu.cn/neihanduanzi/apis.php')
with open(f'{date_str}{current_date}_内涵段子.jpg', 'wb') as f:
        f.write(image_data.content)

# 发起GET请求
image_data = requests.get('https://dayu.qqsuu.cn/weiyujianbao/apis.php')
with open(f'{date_str}{current_date}_60s读世界.jpg', 'wb') as f:
        f.write(image_data.content)

# 发起GET请求
image_data = requests.get('https://dayu.qqsuu.cn/qingganhuayuan/apis.php')
with open(f'{date_str}{current_date}_情感花园.jpg', 'wb') as f:
        f.write(image_data.content)

# 发起GET请求
image_data = requests.get('https://dayu.qqsuu.cn/xingzuoyunshi/apis.php')
with open(f'{date_str}{current_date}_星座运势.jpg', 'wb') as f:
        f.write(image_data.content)

# 发起GET请求
video_data = requests.get('https://dayu.qqsuu.cn/moyuribaoshipin/apis.php')
with open(f'{date_str}{current_date}_摸鱼日报美女视频版.mp4', 'wb') as f:
        f.write(video_data.content)



铁汁们要用的话记得把保存地址更换成自己本地的地址哈。

免费评分

参与人数 2吾爱币 +2 热心值 +1 收起 理由
mazhi0124 + 1 谢谢@Thanks!
baby1314 + 1 + 1 用心讨论,共获提升!

查看全部评分

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

agoni55 发表于 2024-3-20 18:04
请问这个需要易语言?
 楼主| typps 发表于 2024-3-20 18:07
agoni55 发表于 2024-3-20 18:26
mmm8wwwwww 发表于 2024-3-20 20:35
哈哈,这个灰常的不错呀~! 感谢分享。
繁花落尽秭归陈 发表于 2024-3-21 13:25
厉害了   哈哈   我运行运行看看   
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则 警告:本版块禁止回复与主题无关非技术内容,违者重罚!

快速回复 收藏帖子 返回列表 搜索

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

GMT+8, 2024-4-30 23:28

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

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