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

请问能不能以作者页面的链接批量下载 #187

Open
gewuagewua opened this issue Oct 23, 2024 · 4 comments
Open

请问能不能以作者页面的链接批量下载 #187

gewuagewua opened this issue Oct 23, 2024 · 4 comments

Comments

@gewuagewua
Copy link

作者的帖子过多,我复制不过来

@JoeanAmier
Copy link
Owner

可以搭配油猴脚本使用。

@zhouuuuuuj
Copy link

可以搭配油猴脚本使用。

大神,搭配油猴脚本确实可以批量下载,但是如果同个作者同一天发表了两篇笔记就会提示文件已存在,跳过下载,是否可以实现通过自动添加1、2、3的序号来避免?非常感谢~
另外油猴的脚本是否可以增加自定义文件名的功能?

@hpan
Copy link

hpan commented Nov 20, 2024

看文档上这个说明感觉是可以啊:
支持单次输入多个作品链接,链接之间使用空格分隔;程序会自动提取有效链接,无需额外处理!

但是我用命令行的形式,跟多个链接的话会报错:
Usage: main.py [OPTIONS]
Try 'main.py --help' for help.

Error: Got unexpected extra argument (https://www.xiaohongshu.com/discovery/item/673bde9f0000000006015558?xsec_token=AB4azxNuzhhXUExIwKfRQBZljWGoE6N7wKhFXkICd8aPQ=)

我的命令是这样写的(两个链接,用空格隔开的):
python main.py -u https://www.xiaohongshu.com/discovery/item/673c315e000000000202c6d7?xsec_token=ABalc_33OzTT1ut5sZkXrQ9lVqZgHP_HL77Zofe6-pO9w= https://www.xiaohongshu.com/discovery/item/673bde9f0000000006015558?xsec_token=AB4azxNuzhhXUExIwKfRQBZljWGoE6N7wKhFXkICd8aPQ=

请问哪里有问题吗?

@JoeanAmier
Copy link
Owner

看文档上这个说明感觉是可以啊: 支持单次输入多个作品链接,链接之间使用空格分隔;程序会自动提取有效链接,无需额外处理!

但是我用命令行的形式,跟多个链接的话会报错: Usage: main.py [OPTIONS] Try 'main.py --help' for help.

Error: Got unexpected extra argument (https://www.xiaohongshu.com/discovery/item/673bde9f0000000006015558?xsec_token=AB4azxNuzhhXUExIwKfRQBZljWGoE6N7wKhFXkICd8aPQ=)

我的命令是这样写的(两个链接,用空格隔开的): python main.py -u https://www.xiaohongshu.com/discovery/item/673c315e000000000202c6d7?xsec_token=ABalc_33OzTT1ut5sZkXrQ9lVqZgHP_HL77Zofe6-pO9w= https://www.xiaohongshu.com/discovery/item/673bde9f0000000006015558?xsec_token=AB4azxNuzhhXUExIwKfRQBZljWGoE6N7wKhFXkICd8aPQ=

请问哪里有问题吗?

使用双引号包住链接。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants