flbook如何下载PDF

查看 19|回复 2
作者:ids   
zhuxiangyu1024   

https://www.123684.com/s/B4I5Vv-4PWsH 提取码:PYdK   几年前写的,试试看能不能用了。
ids
OP
  

已经自行解决,解决思路:
1.提取页面的HTML文件。
2.解析HTML文件即可获取到图片类型文件的URL。
python dlpdf.py https://flbook.com.cn/c/yzWdbxcxh7
目标URL: https://flbook.com.cn/c/yzWdbxcxh7
📚 步骤1: 提取书籍信息
提取到的书籍数据:
  书名: 可燃气体探测报警系统解决方案9
  作者: FLBOOK会员
  书籍ID: 3096338
  页面HTML: ../upload/pages/2025/10/3096338.html
保存目录: 可燃气体探测报警系统解决方案9_图片
🌐 步骤2: 下载页面HTML
下载HTML文件: https://flbook.com.cn/upload/pages/2025/10/3096338.html
HTML文件下载成功!
🖼️  步骤3: 按HTML提取图片URL
按HTML提取到 52 个图片URL
找到 52 个图片URL
前10个图片URL顺序:
  第 01 页: https://img2.flbook.com.cn/upcre ... 6977123573199784.jp                                                                                                             g?imageMogr2/thumbnail/x1500%3E/format/webp
  第 02 页: https://img2.flbook.com.cn/upcre ... 69775216161812084.j                                                                                                             pg?imageMogr2/thumbnail/x1500%3E/format/webp
  第 03 页: https://img2.flbook.com.cn/upcre ... 69779139370264392.j                                                                                                             pg?imageMogr2/thumbnail/x1500%3E/format/webp
  第 04 页: https://img2.flbook.com.cn/upcre ... 69782858394426198.j                                                                                                             pg?imageMogr2/thumbnail/x1500%3E/format/webp
  第 05 页: https://img2.flbook.com.cn/upcre ... 69787962170696426.j                                                                                                             pg?imageMogr2/thumbnail/x1500%3E/format/webp
  第 06 页: https://img2.flbook.com.cn/upcre ... 69794772737523062.j                                                                                                             pg?imageMogr2/thumbnail/x1500%3E/format/webp
  第 07 页: https://img2.flbook.com.cn/upcre ... 69801265324513301.j                                                                                                             pg?imageMogr2/thumbnail/x1500%3E/format/webp
  第 08 页: https://img2.flbook.com.cn/upcre ... 69806667915443692.j                                                                                                             pg?imageMogr2/thumbnail/x1500%3E/format/webp
  第 09 页: https://img2.flbook.com.cn/upcre ... 69812475434470769.j                                                                                                             pg?imageMogr2/thumbnail/x1500%3E/format/webp
  第 10 页: https://img2.flbook.com.cn/upcre ... 69817315206008871.j                                                                                                             pg?imageMogr2/thumbnail/x1500%3E/format/webp
🖼️  步骤4: 下载合成PDF....
您需要登录后才可以回帖 登录 | 立即注册

返回顶部