Linux 如何从 Opensubtitles.org 下载特定语言的所有字幕?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11538875/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-06 13:50:43  来源:igfitidea点击:

How to download all subtitles from Opensubtitles.org in a specific language?

linuxwget

提问by Hakim

Excuse me if this post is not related to this forum, but I couldn't find any other place to ask my question. It would be appreciated if you introduce me a suitable place for this post. By the way, I am trying to download all the subtitles from Opensubtitles.org in a specific language (say English) and find their translations in another language (say Arabic). I tried wget, but I couldn't download anything useful from this site. (I need .srt, .zip and .txt files) Can everyone help me?

对不起,如果这篇文章与本论坛无关,但我找不到任何其他地方可以提出我的问题。如果您为我介绍一个适合这篇文章的地方,我将不胜感激。顺便说一下,我试图从 Opensubtitles.org 下载特定语言(比如英语)的所有字幕,并找到另一种语言(比如阿拉伯语)的翻译。我试过 wget,但我无法从这个站点下载任何有用的东西。(我需要 .srt、.zip 和 .txt 文件) 大家可以帮帮我吗?

Bests.

最好的。

采纳答案by Sjoerd

The download link is something like:

下载链接类似于:

http://dl.opensubtitles.org/en/download/sub/4617044

Where 4617044 is the ID of the subtitle. You can use this URL with wget to download it, but it won't have the correct filename.

其中 4617044 是字幕的 ID。您可以将此 URL 与 wget 一起使用来下载它,但它不会具有正确的文件名。

Alternatively, you can use the XML-RPC apito search and download subtitles.

或者,您可以使用XML-RPC api来搜索和下载字幕。

回答by Thomas Ahle

Downloading everything individually will put an unnessesary load on their servers. Better use something like http://opus.lingfil.uu.se/OpenSubtitles.php

单独下载所有内容会给他们的服务器带来不必要的负担。最好使用类似http://opus.lingfil.uu.se/OpenSubtitles.php 的东西