Skip to main content

Addic7ed scraper written in Python to download subtitles (almost) automatically

Project description

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 = en

You 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.
    -f FROM_FILE, --from-file FROM_FILE
                            read files 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!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

addic7ed-1.1.0.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

addic7ed-1.1.0-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file addic7ed-1.1.0.tar.gz.

File metadata

  • Download URL: addic7ed-1.1.0.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for addic7ed-1.1.0.tar.gz
Algorithm Hash digest
SHA256 1e17d4a9101d0f997de4d051a36ac0eab73cf154d0b7b962d25679e361e35c57
MD5 df5b5ede663cbe9c53c7d7b74edfacee
BLAKE2b-256 ff8fab57be95a466e79e5777c02e2a87d732293e0a39387517223898d17d12a1

See more details on using hashes here.

File details

Details for the file addic7ed-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for addic7ed-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ab3e51b9de3b3ff1b5ca05196b29987fc6e0f1055b8acf12a4669b85fd2b2fd8
MD5 8cb0d36d6299b6f02c598d08f0f19f48
BLAKE2b-256 b39927e24b3f447c3fd6025dd8c25d1025cc9bd008d809423819a963d916bd34

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page