Comments (11)
对于这个问题,注意两点:
- webdriver需要以headless模式启动,只有该模式下才能保证完整的截图
- 图书内容需要微是信读书已购图书,如果是未购买的图书,微信读书将不会显示完整内容,自然图片抓取的内容会是不全的(这点是为了保证不侵犯版权)
你可以先尝试已购图书
from wereadscan.
还是不全
1、是无头模式运行的
chrome_options.add_argument('headless')
2、我是用微信读书的无限卡,添加书架的,这算已购图书吧。
from wereadscan.
那可以截个图,具体描述一下是怎样的不全
from wereadscan.
通过WeReadScan:
每部分内容不完整,比如序章
https://imgtu.com/i/6FIXA1
https://s3.ax1x.com/2021/03/02/6FIXA1.png
手工截取:
https://imgtu.com/i/6Fo9je
https://s3.ax1x.com/2021/03/02/6Fo9je.png
from wereadscan.
通过WeReadScan下载的PDF
https://anonymousfiles.io/m06y8MKM/
from wereadscan.
目前截取不全的问题已修复(WeReadScan==0.8.2),可在新版本中体验效果
感谢你的issue
from wereadscan.
更新后比之前好很多
但是还有问题:
1、好多图片没有
2、部分页面大大小小不一样
https://imgtu.com/i/6kQ439
from wereadscan.
from wereadscan.
换了本书,卡到这里不动了,重新运行还是过不去
https://ftp.bmp.ovh/imgs/2021/03/6dc3cb3a3097f0b0.png
from wereadscan.
巧了,这是因为章节名里"< TContainerBuilder >","<",">"作为文件名是invalid的,这是个偶发事件
from wereadscan.
哦,那你看看,没图片的问题和,页面大大小小的问题
from wereadscan.
Related Issues (20)
- 部分插图没下载成功
- 图片和字很模糊 HOT 4
- 生成PDF时异常 HOT 6
- png2jpg 报错 HOT 4
- 卡下载上了,selenium chromedriver已安装 py3.74 HOT 8
- 部分章节下载失败
- 没有目录吗? HOT 1
- 章节下载失败 HOT 2
- 是否是腾讯的反爬虫? HOT 1
- CSS 选择器使用了新版 Selenium 弃用的方法 HOT 1
- 无法翻页问题 HOT 1
- 微信图书 HTML 导出脚本
- 爬了一半报错了,可以有人帮我看看咋回事吗?
- 截图报错:Cannot take screenshot with 0 width. HOT 2
- 直接退出来,不知道怎么回事?运行的是demo.py
- 能生成目录吗(书签)
- DeprecationWarning: use options instead of chrome_options HOT 1
- AttributeError: 'WeRead' object has no attribute 'scan2pdf' HOT 1
- 运行出错 HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wereadscan.