每天5点发送秀人图册,密码为4000

This commit is contained in:
liuwei
2025-02-24 17:08:46 +08:00
parent c64b58540d
commit 8bcfe55909
5 changed files with 114 additions and 3 deletions

View File

@@ -5,6 +5,8 @@ import time
import random
import re
from xiuren.xiuren_pdf import generate_pdf_from_images
def get_html(url, session):
headers = {
@@ -131,7 +133,7 @@ def xiuren_dowload_pic():
return
processed_count = 0 # 记录已处理的帖子数量
target_count = 2 # 目标处理2个新帖子
target_count = 1 # 目标处理2个新帖子
for post in post_info:
if processed_count >= target_count:
@@ -167,6 +169,9 @@ def xiuren_dowload_pic():
print(f"完成处理帖子 {post_number}")
processed_count += 1
# 将下载好的帖子生成PDF
return generate_pdf_from_images('.')
if __name__ == '__main__':
xiuren_dowload_pic()