ygcaicn / keledge Goto Github PK
View Code? Open in Web Editor NEW可知pdf下载(文字版)/高教书苑pdf下载/悦读全文pdf下载
可知pdf下载(文字版)/高教书苑pdf下载/悦读全文pdf下载
h = '''
Connection: keep-alive
Pragma: no-cache
Cache-Control: no-cache
Accept: application/json, text/plain, /
Sec-Fetch-Dest: document
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36
Sec-Fetch-Site: same-site
Sec-Fetch-Mode: cors
Referer: https://www.keledge.com
Accept-Encoding: gzip, deflate, br
Accept-Language: en,zh-CN;q=0.9,zh;q=0.8,pt;q=0.7
'''
headers = dict([i.split(': ', 1) for i in h.split('\n') if i != ''])
headers = {}
为什么headers = {}?
HEP(高教社)貌似预览界面和请求的authorize和可知一样,就是js可能略有改动
希望能够顺便添加对HEP的支持~
地址:https://ebook.hep.com.cn/ebooks/index.html#/
js:https://ebook.hep.com.cn/ebooks/read/static/js/3.3fe9d02c34f5e5a3fc36.1582624883446.js
感谢感谢
keledge已出应对措施,某些情况会向https://gateway.keledge.com/transfer/risk/check Post信息,存在风险会暂时性封号,表现为所有数据都无法加载,包括首页。目前了解到按F12会触发上报,大家慎重操作。
目前修改Source地址仍能使用。为了大家更长久的使用,暂时不再更新,自行F12寻找js地址。
号外:
为阻止上报risk可以在Header Editor 中取消下面的请求:
https://gateway.keledge.com/transfer/risk/check
Chrome Header Editor 插件配置地址:
https://gist.githubusercontent.com/ygcaicn/1f308a2b739c3ee836b6e0f5f6d19020/raw/HeaderEditor.json
Originally posted by @ygcaicn in #8 (comment)
Gooreplacer设置完后,打开电子书页面并没有显示简易教程的窗口,请问要怎么操作?
可以做个这个网页的吗?
http://sjzk.spacespecial.com.cn/#/home/book
为什么使用这个会一直正在获取信息... 已经获取和2个小时,都没反应
您好,很遗憾您将这个项目关闭了,但是还是冒昧来请教一下,请问这种疫情期间免费看的书怎么下载?https://www.keledge.com/pdfReader?url=https%3A%2F%2Fgateway.keledge.com%2Ftransfer%2Faqr%2Fauthorize&contentexternalid=P00056-01-9787519119706-Pdf&id=676668936145604608&organizationExternalId=&objectType=104&process=&tocValue=
指点一下下载后怎么解密就行,里面第一页地址是这样的https://gateway.keledge.com/transfer/filetranslate/shorturl/311e99a35582121be4029d5129a406c0/c6fe63b20b1c59cc10964cf8d4ec6298.pdf?fn=f690229642a2b8bc66e9fbb05793266b,下载后打开是乱码?有些阅读器显示文档结构已损坏,麻烦您抽空指点一下,谢谢!!
第三步原理:利用Chrome插件重定向Js地址到我们fake的Js, 保存图书信息以及加密密码。
问题一:Gooreplacer打不开,要科学上网吗?
问题二:Destination那个js是指本github里的,那么Source的那个JS怎么来的?
比如:https://www.keledge.com/wrap/details/book?id=620876602959466496怎么获取Source的那个JS?
您写的说明新手太不友好了,请具体一步步说明。
下载完的pdf打不开
keledge平台没有弹出窗口
keledge这个项目我从别人那里fork了,但是这个gooreplacer重定向不行啊。老是失败是为啥
问题描述:python程序已经下载好了enc里所有的PDF,但在dec是空的
平台:win10 64位 python36 安装好了Openssl
程序里的异常:WARNING: '98.pdf' generated an exception: init() got an unexpected keyword argument 'capture_output'(每一页pdf都出现此错误)
按照作者指引测试测试:(python36) E:\Test\kezhiwang\keledge-master>openssl enc -d -aes-128-ecb -K 63742168763555796243614542237a36 -in 1.pdf -out dec.pdf
对1.pdf测试可以解密,输出了一个dec.pdf可以用PDF软件正常打开
在程序里的进一步测试:
cmd = 'openssl enc -d -aes-128-ecb -K "{}" -in "{}" -out "{}"'.format(p, i, o)
print('p, i, o:', p, i, o)
print('I am here! CMD is OK!')
结果输出:
WARNING: '82.pdf' generated an exception: init() got an unexpected keyword argument 'capture_output'
p, i, o: 63742168763555796243614542237a36 E:/Test/kezhiwang/keledge-master/keledge-master\3_enc\96.pdf E:/Test/kezhiwang/keledge-master/keledge-master\3_dec\96.pdf
I am here! CMD is OK!
可以发现路径来说应该是没有问题的
但上面那个WARNING是不是说明没有正常调用CMD,因为单独openssl一个是好的
请问作者该怎么解决?
http://2020lib.ebook.hyread.com.cn/bookDetail.jsp?id=37564
讯号与系统
书翻页的时候,先传一个js文件,https://service.ebook.hyread.com.cn/ebookservice/epubreader/hyread/v3/public/b2522d7717.w.js
一个图片文件
https://service.ebook.hyread.com.cn/ebookservice/comic/CyU3LKyaz91bBMqf0Uhyku9GN9XWl06a5VtF-ueHEDtfp87TLLCCldWKKcO562ewEgEBczJcvLqWzinjGKmjMrHkRv1LZdBjyf0S0Y641tw/5Yug6o2s65eg5IKz5Zav6IGD74Gi6rmU6qia47-_6Jm24K62?assetUUID=8a8a84ca5c1b0382015f6b043e627a1e
js显示是AES-CBC。
重点:想知道:如何利用js文件解密那个图片地址传来的图片。
其实:每一页解密后的图片可以开发工具里面都可以看到,是:
blob:https://service.ebook.hyread.com.cn/9db64c6a-8ebe-497d-8f47-abbf20d71853
关键是blob的无法下载,只能另存为,特痛苦。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.