Giter Site home page Giter Site logo

xonshiz / hulusubs_dl Goto Github PK

View Code? Open in Web Editor NEW
48.0 5.0 13.0 67.1 MB

Command line script that downloads subtitles from hulu.com

License: MIT License

Python 99.57% Batchfile 0.21% Shell 0.21%
hulu download-subtitles srt episodes python vtt special-characters srt-subtitles

hulusubs_dl's People

Contributors

codetriage-readme-bot avatar kkatayama avatar xonshiz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

hulusubs_dl's Issues

No subtitles are downloaded in TTML format

When I try to download the subtitles of the TV show "Castle Rock" or "Bob's Burgers" in "ttml" format the script downloads only the first episode, but when I go to the folder of the downloaded subtitles no subtitles are actually downloaded and the folder is empty, my operating system is Windows 10, and I'm using a Windows EXE Binary.

https://www.hulu.com/series/castle-rock-b11816c9-9e35-44f3-bf04-220b1d12f770

https://www.hulu.com/series/bobs-burgers-fdeb1018-4472-442f-ba94-fb087cdea069

15

Hulusubs_dl_Error_Log for "Castle Rock"

Hulusubs_dl_Error_Log.zip

error opening the win 32 application

Hi,when I try to open the application I get an error saying that
HuluSubsDownloader.exe entry point not found
the procedure entry point ucrtbase.terminate could not be located in the dynamic link library api-ms-win-crt-runtime-l1-1-0.dll.

I am using the 32 bit windows

Season and episode number added to the movie subtitle

When I try to download a movie subtitle the number of the season and episode added to the name of the subtitle file and a season folder created like.

C:\Hulusubs_dl\Terminator - Dark Fate\01\Terminator - Dark Fate - S01E01 [en Sub].srt

https://www.hulu.com/movie/terminator-dark-fate-3be9a47d-4a50-447a-980a-e5cae615f522

my operating system is Windows 10, and I'm using a Windows EXE Binary.

C:\Hulusubs_dl>Hulusubs_dl.exe -v
Starting the script in Verbose Mode
Enter Hulu URL : https://www.hulu.com/movie/terminator-dark-fate-3be9a47d-4a50-447a-980a-e5cae615f522
Reading Configuration File.
Downloading Subtitle For Terminator - Dark Fate - S01E01 [en Sub].srt
C:\Hulusubs_dl>

Hulusubs_dl_Error_Log

Hulusubs_dl_Error_Log.zip

Not working

Hi,I am not able to rip subtitles from hulu as they changed their entrie web interface and your program doesn't even recognise the url of the show,could you please update the program?

[ENHANCEMENT] Keep the original subtitle file

It would be useful to also save the original file grabbed from Hulu, alongside the converted SRT files. They seem to use VTT at the moment, but regardless of the format now or in the future it would be best to always keep the raw file because it will contain all the original information that could be potentially lost when converting to other formats.

For example, there are some advanced positioning and formatting options in VTT that SRT doesn't support. Also, VTT is currently being specified as the web standard and is gaining ground in browsers and media players, and it seems quite possible it could become the SRT successor in the next few years.

Issue 'latin-1' codec can't encode character '\u2026', when running the script

OS: Ubuntu 20.04.1, Windows 10 Home
Version: 1.0.122 Python Script and Windows EXE
URL: https://www.hulu.com/series/freaks-and-geeks-0e7d9831-22bb-455d-8255-412be0415b2c
Description: The tool shows the following error when trying to download the subs of this series, in both English and Spanish

DEBUG: eab_id_matches: ['and', 'geeks', '0e7d9831', '22bb', '455d', '8255', '412be0415b2c']
DEBUG: initial eab_id: geeks-0e7d9831-22bb-455d-8255-412be0415b2c
DEBUG: GET url: https://discover.hulu.com/content/v5/hubs/series/geeks-0e7d9831-22bb-455d-8255-412be0415b2c?schema=1&limit=999&device_info=web:3.10.0&referralHost=production
DEBUG: GET proxy: {'http': None, 'https': None}
DEBUG: Starting new HTTPS connection (1): discover.hulu.com:443
DEBUG: HuluException: 'latin-1' codec can't encode character '\u2026' in position 512: ordinal not in range(256)

I tried the same process with MASH (https://www.hulu.com/series/mash-ae94231d-0f04-482a-b9ee-9911e339e3ed), but to no avail. The issue is present on both Ubuntu and Windows :(

Some noob problems

firmx10vpxo
m8ztksnxrjy
Hi! Idk why but the app just won't work it gives the error and shuts down immediately
Help please(

text.encode("utf-8") Instead of str()

I don't really know python. But I found that some episodes errored out because of character encoding problems. I was able to get them to work by changing str() to text.encode("utf-8") on line 52data_json = json.loads((page_source.find_all('script', {'type': 'application/ld+json'})[0].text).encode('utf-8'))

and line 72: sub_file.write(smi_source.encode('utf-8'))

Windows 10: Response Code 400

I was having trouble with the executable on OSX (I recently migrated to a different computer, so the setup I had working before isn't handy anymore), so I tried the Windows version, which seemed to work more as described:

OS: Windows 10
Version: EXE

Here's the output:

hulusubs_dl --verbose

***Starting the script in Verbose Mode***

Enter Hulu URL : https://www.hulu.com/series/the-great-north-374cdbc2-3b08-4b81-a68f-a45a70665849
Reading Configuration File.
Whoops! Seems like I can't connect to website.
It's showing : <Response [400]>
Run this script with the --verbose argument and report the issue along with log file on Github.
Can't connect to website https://discover.hulu.com/content/v5/hubs/series/north-374cdbc2-3b08-4b81-a68f-a45a70665849?schema=1&limit=999&device_info=web:3.10.0&referralHost=production
Couldn't get series metadata. Exiting

Response [400]

Hello. I am getting an error with any link to hulu. I did not understand how to run the script with --verbose. I am using Express vpn.
Help :)

OS (Windows)
OS Version (Windows 10 Home)
Version (Windows EXE Binary)
URL (any url)
Error: "Whoops! Seems like I can't connect to website.
It's showing : <Response [400]>
Run this script with the --verbose argument and report the issue along with log file on Github.
Can't connect to website https://play.hulu.com/v6/playlist"

Config:
{'max_tries_for_cookie': '2', 'download_location': 'C:\0', 'subtitle_lang': 'en', 'subtitle_extension': 'srt', 'proxies': ''}

Windows 10: Error when attempting to download subs in the vtt format.

OS: Windows 10
Version: EXE

When attempting to save vtt files, I received the following error:

Downloading Subtitle For The Great North - S1E1 [en Sub].vtt
Couldn't find vtt in Hulu

The error repeated for each episode, finishing with registering an error log. Using the following URL:

https://www.hulu.com/series/great-north-374cdbc2-3b08-4b81-a68f-a45a70665849

AttributeError: 'NoneType' object has no attribute 'group'

This was working yesterday, but not today :(

Perhaps Hulu changed their schema.

$ source ./venv/bin/activate
(venv) $ python HuluSubsDownloader.py 
Enter a URL : https://www.hulu.com/watch/444514            
Which format do you want : vtt
Traceback (most recent call last):
  File "HuluSubsDownloader.py", line 97, in <module>
    SubDownloader = HuluSubs(mainurl)
  File "HuluSubsDownloader.py", line 23, in __init__
    self.singleEpisode(self.url)
  File "HuluSubsDownloader.py", line 33, in singleEpisode
    episode_number = str(re.search('\"episodeNumber\"(.*?)\,', html_content).group(1)).replace(':','').replace('\\n','').strip()
AttributeError: 'NoneType' object has no attribute 'group'```

Issue with special character

issue

On Windows 10, it looks like there's an issue when trying to download subtitles from something that has a special character in the title. Seems to be an issue when it tries to create the folder, it adds the special character which isn't allowed. The tool worked correctly when I tried it on another series that didn't have the ":" special character.

[Closed] Whole series sub downloading not working properly

So the cmd window closes after showing Writing Links to the File... for a split of second.

Tried both the script and the binary for windows.

Can you please help?

Also a suggestion: Can you add like SxxExx when writing the .srt files? Thanks!

[FIXED] Can't download any subtitles.

Hi, I've just downloaded latest version of Hulu Subs Downloader Windows Binary and I also have followed your Youtube tutorial but I can't download anything. I have tried this link for single video and this link for whole series. After running program, the screen shows up the text "Writing Links to the File..." and there was no subtitles downloaded. But there was a new file created by the program and It was named "newfile.txt" in the same folder with the program. I have uploaded this file to pastebin. Please, fix this soon!

Japanese language support?

In the wiki it says 'feel free to open up an issue' for suggestions so that's what I'm doing here. Any chance support for Japanese subtitle downloading would be able to be added? I see it says that at the moment Hulu only offers English and Spanish, so maybe they're only available in Hulu Japan. Does that mean that it's impossible?

Thanks!

Hulu Changed the System and software not working!

About seven months ago, it still works, but just few days ago, I logged on Hulu again and found that things kinda changed on Hulu and the software don't work anymore, can't download the subs anymore:

Enter a URL for hulu.com : http://www.hulu.com/oh-my-ghostess
Which format do you want? (SRT or VTT) : SRT

Please Check The URL again!

C:\MeusScripts\HuluDownloader>python HuluSubsDownloader.py
Enter a URL for hulu.com : https://www.hulu.com/series/oh-my-ghostess-422af229-57ad-4426-b821-9c3f568bbbe9
Which format do you want? (SRT or VTT) : srt

Please Check The URL again!

C:\MeusScripts\HuluDownloader>

[FIXED] File name too long when saving SRT

screen shot 2016-07-12 at 5 16 53 pm

It's just a minor inconvenience-- it still outputs the link to download the .vtt, but I have a hunch that this isn't the intended behavior. A fix would be appreciated! I can provide additional information if necessary.

attribute error/failure to execute?

is there something i'm doing wrong?

edit: i've realized that the title of the show has a special character, FullMetal Alchemist: Brotherhood, I'm able to rip subs from other shows fine!

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.