从subscene下载字幕

ezsub的Python项目详细描述


埃兹布

DownloadsPublished VersionGitHub ReleaseLicense: MITBuild Status

ezsubsubscene.com及其波斯语克隆体下载字幕 例如subf2m.co
有关详细信息,请参见How ezsub Works。在

目录

安装

依赖项:

  • Python3.7+
  • unrar[可选]

使用pip3安装最新发布的版本

# linux and mac
python3 -m pip install --user --upgrade ezsub

# windows
python -m pip install --user --upgrade ezsub

要从github安装最新的正在进行的版本(不推荐),请使用以下命令:

^{pr2}$

有关详细信息,请参见here。在

如何使用

下载

ezsub dl -t|-T TITLE -l LNG1 [LANG2 ...] -d DESTINATION -s SITE1 [SITE2 ...] -a|-A -o|-O -S -g|G

有关每个开关的详细信息,请参见this

示例:

# if search keywords are distinctive enough, use auto select (-a)
ezsub dl -t riverdale third season -l fa -a

# determine site. If site is not responding, ezsub will choose first responding site automatically.
ezsub dl -t game of thrones -s subscene

# movies, tv series, video musics are not different.
ezsub dl -t how to train your dragon

# if you know exact title used in url use this -T# for example subscene page for first season of "the end of the f***ing world" is:# https://subscene.com/subtitles/the-end-of-the-fing-world#so:
ezsub dl -T the-end-of-the-fing-world

# extract here and relative to here (both windows and unix)
ezsub dl -t aquaman -d .
ezsub dl -t aquaman -d ./children/to/here
ezsub dl -t aquaman -d ../sibling/to/here

# absolute and relative path (unix)
ezsub dl -t aquaman -d /absolute/path/to/a/destination
ezsub dl -t aquaman -d ~/relative/path/to/home/directory

# absolute path (windows)
ezsub dl -t aquaman -d 'D:\Movies\Aquaman\'

摘录先前下载的字幕

ezsub unzip -t|-T Title of Movie or TV Series -l LNG1 [LNG2 ...] -d DESTINATION -a|-A -o|-O -g|-G

开关与ezsub dlswitches相同,只是没有-s和{}。ezsub搜索"cache"文件夹。Rest与下载过程相同。在

More Details

登录

自2019年6月以来,谷歌添加了subscene。如果用户登录,则不再需要此验证码。
现在(2019年10月),即使没有用户和密码,也很容易获得令牌。此外,波斯语镜像,如“hassisub”和“subb2m”不需要登录。在

信息

ezsub info
ezsub info -v {-t|-s|-n}

打印一些有用的信息,如版本和缓存文件夹详细信息。
With -v列出所有下载的标题,并按标题(-t)排序文件的大小和数量。要根据文件大小和数量(n)进行排序,请使用-s和{}。在

配置

ezsub config show
ezsub config set OPTION VALUE

显示或更改默认值的命令。在

More Details

ezsub config set Defaults.site hastisub
# to reset to default
ezsub config set Defaults.languages -

清洁

ezsub clean -t|-T TITLE -l LNG1 [LNG2 ...][-0] -a|-A
ezsub clean --all -l LNG1 [LNG2 ...][-0] -a|-A

在缓存目录中搜索给定的标题和语言。然后:

  • 使用-0或{}它将用空的zip文件替换每个下载的文件。在
  • 如果没有-0,它将完全删除下载的文件。在

如果要删除或清空所有字幕,请使用--all开关。在

更新

ezsub update

检查是否有新版本的ezsub可用。如果用户确认,将安装新版本。
另外,如果最后一次检查是在7天前,在下一次调用时,它会警告用户检查更新。在

备份

从缓存文件夹创建压缩存档。它接受目标文件夹的-d选项和在备份完成后打开目标文件夹的-o|-O。在

历史

检查以前调用的ezsub命令的历史记录。在

# show previous calls
ezsub history show
# or simply:
ezsub history# select a previous call [its line number] to run again.
ezsub history run NUMBER

# short version
ezsub h show|run

报告错误

ezsub记录一些可以在ROOT/ezsub.log文件中找到的消息。
如果出现错误,可以使用--loglevel=Debug开关运行每个ezsub命令。获取ezsub.log内容并创建一个要报告的问题here。在

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java JNI和取消异步任务   java整数n作为List<String>的第二个参数传递。子列表(fromIndex,toIndex),但是stacktrace说toIndex在Kotlin中是n+2   如何在Java中正确嵌套多个ArrayList/Maps?   在嵌套条件语句中比较数组中的值时,java List没有打印正确的值   从CRON作业运行java代码   JRE使用jvisualvm检测到java致命错误   java将字符添加到BufferedReader中   带有枚举的java单例与带有双重检查锁定的单例   Java中的编译器构造基类的更改会影响子类的字节码吗?   Java作为Windows服务用户数据路径   java clone():ArrayList。克隆人()我认为它是一个肤浅的复制品   在jfilechooser多文件选择器启用中打开对话框后,java文件将显示所选文件   java在常用的操作方法中使用反射可以吗?   java ReloadableResourceBundleMessageSource。getMessage()不使用我给它的参数