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

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 485|回复: 3
收起左侧

[资源求助] 求下载电子书

[复制链接]
东方天涯 发表于 2023-1-30 23:01
40吾爱币
本帖最后由 东方天涯 于 2023-1-30 23:03 编辑

楚雄州地方文献http://yzwx.cxlib.org.cn/wap_2018/file_list.aspx?nid=38

最佳答案

查看完整内容

https://wwme.lanzoum.com/iH7WD0m8n7fg 密码:a32n virustotal:https://www.virustotal.com/gui/file-analysis/NmYxNjlhNmQ0OGQzOWFkMTlkMzI3ZjhlZTgwZWM2Zjc6MTY3NTE1MTE5Mw== 输入例:http://yzwx.cxlib.org.cn/bookread/book_read.aspx?id=9492#page/20 开源: [mw_shl_code=python,true]from re import compile as ce from re import findall as fl from requests import get as gt from PIL import Image import os ...

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

Kenny0521 发表于 2023-1-30 23:01
https://wwme.lanzoum.com/iH7WD0m8n7fg 密码:a32n
virustotal:https://www.virustotal.com/gui/f ... jc6MTY3NTE1MTE5Mw==
输入例:http://yzwx.cxlib.org.cn/bookread/book_read.aspx?id=9492#page/20
开源:
[Python] 纯文本查看 复制代码
from re import compile as ce
from re import findall as fl
from requests import get as gt
from PIL import Image
import os
   
def compt():
    png_files = []
    sources = []
    for file in os.listdir():
        if 'jpg' in file: png_files.append(file)
   
    output = Image.open(png_files[0])
    png_files.pop(0)
    for file in png_files:
        png_file = Image.open(file)
        if png_file.mode == "RGB":
            png_file = png_file.convert("RGB")
        sources.append(png_file)
    output.save(os.getcwd() + "/output.pdf", "pdf", save_all=True, append_images=sources)
    os.system("del *.jpg")
      
qr = []
qwq = gt(input('Made By Kenny0521\n请输入在线阅读器网址: ')).text
for i in fl(ce('jpg_f=.*?]'), qwq):
    qr.append(i)
flk = fl(ce("pathPages.*?/'"), qwq)
rqr = []
for i in qr[0][7:].split("'"):
    if ".jpg" in i: rqr.append("http://yzwx.cxlib.org.cn/" + flk[0][14:].split("'")[0] + i)

for i in range(len(rqr)):
    open(str(i + 1).zfill(len(str(len(rqr)))) + ".jpg", "wb").write(gt(rqr[i]).content)
    print(str(i + 1) + "/" + str(len(rqr) + 1))
 
compt()

免费评分

参与人数 1吾爱币 +1 热心值 +1 收起 理由
p_hugh + 1 + 1 热心回复!

查看全部评分

 楼主| 东方天涯 发表于 2023-1-31 11:31
lpf7583 发表于 2023-1-31 15:33

要是扒几十个还行,能做到,这要扒上百上千个图,可是有些困难了呀!
快速回复 收藏帖子 返回列表 搜索

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

GMT+8, 2024-4-27 10:38

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

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