https://github.com/pogman-code/addic7ed
Addic7ed scraper written in Python to download subtitles (almost) automatically
https://github.com/pogman-code/addic7ed
Last synced: about 1 month ago
JSON representation
Addic7ed scraper written in Python to download subtitles (almost) automatically
- Host: GitHub
- URL: https://github.com/pogman-code/addic7ed
- Owner: pogman-code
- License: mit
- Created: 2015-12-20T18:54:05.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-20T09:42:10.000Z (about 8 years ago)
- Last Synced: 2025-04-11T17:46:09.653Z (about 2 months ago)
- Language: Python
- Homepage:
- Size: 88.9 KB
- Stars: 14
- Watchers: 3
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
- awesome-repositories - pogman-code/addic7ed - Addic7ed scraper written in Python to download subtitles (almost) automatically (Python)
README
Addic7ed Scraper
================Requirements
------------This scraper is made to work with Python 3 only. It is pre-installed on
many linux distribution.If it's not your case, install it :p
Install
-------Using python-pip:
::$ sudo pip install addic7ed
Using Git repository:
::$ git clone https://github.com/Jesus-21/addic7ed.git addic7ed
or download/unzip
`archive `__then (from download/clone path):
::
$ sudo pip install -r requirements.txt
or use python `Python
virtualenv `__
and install requirements within.Create ~/.addic7edrc file containing language you want (english for instance):
::[addic7ed]
lang = enYou can find language codes `here `__
Usage
-----If you installed using python-pip, just run *addic7ed* (otherwise *addic7ed.py* file should be excutable) from the folder where your video files are,
::$ addic7ed
or
::
$ /git/clone/path/addic7ed.py
following command line arguments can be provided:
::
positional arguments:
PATH path of file to search subtitles for (default: all
video from current dir).optional arguments:
-h, --help show this help message and exit
--list-lang list supported languages.
-n, --dry-run do not ask or download subtitlejust output available
ones and leave.
-l LANG, --lang LANG language to search subs for (default: en).
-k, --keep-lang suffix subtitle file with language code.
-e EXTENSIONS [EXTENSIONS ...], --extensions EXTENSIONS [EXTENSIONS ...]
Find subtitles for files matching given extensions
(space separated values)
--names-from-file NAMES_FROM_FILE
read file names from a file.
--paths-from-file PATHS_FROM_FILE
read file paths from a file.
-r {none,sub,video}, --rename {none,sub,video}
rename sub/video to match video/sub or none at all
(default: none).then it will prompt which file you want to download. If download is
successful, it will rename the video file to match subtitle file.|Example|
TODO List
---------
- Error management/reporting
- Intelligent auto-download (using comment + completion +
popularity)
- Better file crawling (recursivity mainly)Suggestions and/or pull requests are more than welcome!
.. |Example| image:: https://raw.githubusercontent.com/Jesus-21/addic7ed/master/readme/capture.jpg