地质云这个网站的图片怎么下载

查看 94|回复 6
作者:一之太刀   
链接在此http://www.nrsis.org.cn/mnr_kfs/file/read/2184851a7236b5efc95b6956b671d5a0
里边的图片用开发人员工具也看不到链接,只有一大串类似的文本
求问下载这种网页里图片的方法,貌似这些图都是用pdf转换成的图片,如果能下载pdf更好

图片, 地质

Kenny0521   

能搞,稍等下
Kenny0521   

插旗开源,代码正在打包
[Python] 纯文本查看 复制代码from base64 import b64decode as dcd
from PIL import Image
from re import compile as ce
from re import findall as fl
from requests import get as gt
import os
from PyPDF2 import PdfMerger
filelt = []
def compt():
    global filelt
    filenames = os.listdir()
    client = PdfMerger()
    for filename in filelt:
        filepath = os.path.join(os.getcwd(), filename)
        print("[debug] add to merge list... " + filepath)
        client.append(filepath)
    client.write(os.path.join(os.getcwd(), 'output.pdf'))
    client.close()
    for i in filelt: os.system("del " + i)
cd = input("Made by Kenny0521\n请输入阅读器Url: ")
cdd = cd.split("/")[-1]
totpg = int(fl(ce("parseInt.*?,"), gt(cd).text)[0].split("'")[1]) + 1
for i in range(1, totpg):
    print("[debug] downloading " + str(i) + " / " + str(totpg - 1))
    open(str(i) + ".pdf", "wb").write(dcd(gt("http://www.nrsis.org.cn/mnr_kfs/file/readPage?" + "code=" + cdd + "&page=" + str(i)).text))
    filelt.append(str(i) + ".pdf")
compt()
Kenny0521   

https://wwme.lanzoum.com/iylgi0o4pyyh
密码:7wks
等待virustotal扫描
Kenny0521   

virustotal扫描地址:https://www.virustotal.com/gui/f ... TE6MTY3Njg5NTg0Nw==
结帖吧
surepj   

http://h4.pdfdo.com/Download/022020290122MergePDF.pdf?t=974
ahappypanda   

方法没有,从别的地方下了一个,高清无水印4M
您需要登录后才可以回帖 登录 | 立即注册

返回顶部