Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于下载度盘 pdf 等文档文件的新思路 #6949

Open
4 tasks done
JamesBrosy opened this issue Aug 5, 2024 · 4 comments
Open
4 tasks done

关于下载度盘 pdf 等文档文件的新思路 #6949

JamesBrosy opened this issue Aug 5, 2024 · 4 comments
Labels
enhancement New feature or request stale No activity for more than 30 days

Comments

@JamesBrosy
Copy link

JamesBrosy commented Aug 5, 2024

Please make sure of the following things

  • I have read the documentation.
  • I'm sure there are no duplicate issues or discussions.
  • I'm sure this feature is not implemented.
  • I'm sure it's a reasonable and popular requirement.

Description of the feature / 需求描述

我是非svip用户,我在本地电脑的 docker 上部署的 alist,能看视频,但是作为网盘存书的重度用户,下载和预览百度网盘的 pdf 等文档文件,很重要,但是在 alist 预览时,Failed to fetch无效或损坏的 PDF 文件 是常态,并且下载时返回 code:500, failure,status: 403 response,我感觉这应该不是office服务的问题 #3165 ,也不是 https 的问题 #为什么我不能预览pdf文件 而是无法下载资源导致无法预览,我其他网盘都能预览。
#2181

所以有如下需求:已更快的速度下载和预览度盘 pdf 等文档文件,我仅在此提供如何提供更快下载pdf等文档的思路。

Suggested solution / 实现思路

我平时能在手机app上通过如下方法,以几兆的速度下载百度网盘中的文档文件(下面是我在模拟器中的的思路复现)


我尝试通过 Burpsuite 抓包解决:

Screenshot_20240805_133559-1
Screenshot_20240805_140815-1

我将上面获取到的 url 粘贴到 motrix 中,并修改 ua,速度很快:

0-Screenshot_20240805_151250-2
Screenshot_20240805_152426

这里有个推荐项目:BaiduPCS-Go,我这个项目中也提了差不多的 BaiduPCS-Go #342

建议

使用 BaiduPCS-Go 中登录百度网盘的方法,不需要刷新令牌,只需要 cookie 中的 BDUSS 值即可登录百度网盘,BaiduPCS-Go 获取到的直链和我获取的链接几乎没有区别,但是下载速度干差万别,具体看 issue BaiduPCS-Go #342

最后

我不知道是否能通过此方法下载音视频或者压缩文件,因为没办法在手机上使用相同思路下载它们。

Additional context / 附件

No response

@JamesBrosy JamesBrosy added the enhancement New feature or request label Aug 5, 2024
Copy link

welcome bot commented Aug 5, 2024

Thanks for opening your first issue here! Be sure to follow the issue template!

@pongfcnkl
Copy link

建议直接开svip

@yucho123987
Copy link

建议直接开svip

垃圾百毒网盘开个锤子SVIP

Copy link

stale bot commented Sep 30, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale No activity for more than 30 days label Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request stale No activity for more than 30 days
Projects
None yet
Development

No branches or pull requests

3 participants