Git Product home page Git Product logo

subs-dl's Introduction

subs-dl

Subtitles Downloader (Hulu, Animelon)

Requirements

  • Python 3.x
    • requests
    • pycrypto

Usage

Hulu (hulu.py)

  1. Open video page like https://www.hulu.com/watch/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
  2. Copy the text below and paste it to console of your browser to get Content ID:
var x=new XMLHttpRequest;x.open("GET","https://discover.hulu.com/content/v3/entity?language=en&schema=4&eab_ids="+window.location.href.split("/").pop(),!1),x.withCredentials=!0,x.send(null),JSON.parse(x.responseText)["items"][0]["content_id"];
  1. Execute the following command and follow the steps as told (if you want to save as VTT, use -v or --vtt option):
python3 hulu.py

Animelon (animelon.py)

  1. Get video ID from URL:
    https://animelon.com/video/xxxxxxxxxxxx => xxxxxxxxxxxx

  2. Execute the following command and paste the ID:

python3 animelon.py

subs-dl's People

Contributors

subdiox avatar

Watchers

 avatar

subs-dl's Issues

All the line breaks are removed from the subtitle

Hi, in your userscript all the line breaks are removed from the downloaded subtitle file in SRT format using the latest version 1.0.2 on Firefox with Tampermonkey, and this happens even before converting the subtitle file to SRT when I used

https://github.com/subdiox/subs-dl/blob/277cf729965fff00b13a9adb8cbdc20299b3d3c6/hulu.user.js

please fix the script when you have the time, and one more thing, the script does not work all the time and I need to refresh the video's page to make it works, this problem fixed for me when I replaced

// @match https://www.hulu.com/watch/*

with

// @match https://www.hulu.com/*

the subtitle file in vtt format looks like this when I open it with notepad++ in Word wrap (the problem might be from Tampermonkey for Firefox)

sub

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.