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

是否可以支持发现页面地址直接解析下载? #707

Open
mofanx opened this issue Apr 24, 2024 · 2 comments
Open

是否可以支持发现页面地址直接解析下载? #707

mofanx opened this issue Apr 24, 2024 · 2 comments
Labels
需求建议(enhancement) 新功能或需求(New feature or request)

Comments

@mofanx
Copy link

mofanx commented Apr 24, 2024

问题:

当我在发现页看到想要下载的视频时,比如:“https://www.douyin.com/discover?modal_id=7358028070286134564”

我想通过命令:
f2 dy -c conf/dy_one.yaml -u https://www.douyin.com/discover\?modal_id\=7329735840412798249

来进行下载,这时直接使用网页地址会报错,如下:

INFO     App: douyin
INFO     主配置路径:E:\Program Files\Python\Python311\Lib\site-packages\f2\conf\app.yaml
INFO     自定义配置路径:D:\Downloads\Video\conf\dy_one.yaml
INFO     Version 0.0.1.5
请前往QA文档 https://johnserf-seed.github.io/f2/question-answer/qa.html 查看相关帮助
**ERROR    未在响应的地址中找到aweme_id,检查链接是否为作品页**

必须要手动点击网页上的分享按钮,手动点击“复制链接”,然后使用类似下面的命令 才能正常下载 :

f2 dy -c conf/dy_one.yaml -u "5.64 04/21 XzT:/ J@I.iP 盘点那些娶回家贼好的女生# 宝藏女孩 # 沙雕女孩欢乐多 https://v.douyin.com/iYcetQfG/ 复 制此链接,打开Dou音搜索,直接观看视频!"

需求:

是否可以支持下直接使用发现页网页地址进行下载?

好处

1、减少手动操作的步骤,效率更高。
2、方便配置ahk脚本,直接调用命令进行下载。

感谢大佬!

@mofanx mofanx added the 需求建议(enhancement) 新功能或需求(New feature or request) label Apr 24, 2024
@Johnserf-Seed
Copy link
Owner

可以支持,加入下个版本更新中

@Johnserf-Seed
Copy link
Owner

命令行中的-u参数是不需要加入反斜杠转义的,除非是携带&的地址,只需用双引号包裹即可。

  • f2 dy -c conf/dy_one.yaml -u https://www.douyin.com/discover?modal_id=7329735840412798249
  • f2 dy -c conf/dy_one.yaml -u "https://www.douyin.com/discover?modal_id=7329735840412798249"
  • f2 dy -c conf/dy_one.yaml -u "https://www.douyin.com/discover?from_page=home&modal_id=7329735840412798249"
  • f2 dy -c conf/dy_one.yaml -u "5.64 05/12 YMJ:/ K@w.sR 盘点那些娶回家贼好的女生# 宝藏女孩 # 沙雕女孩欢乐多 https://v.douyin.com/i2MUfFGW/ 复制此链接,打开Dou音搜索,直接观看视频!"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
需求建议(enhancement) 新功能或需求(New feature or request)
Projects
None yet
Development

No branches or pull requests

2 participants