xonshiz / hulusubs_dl Goto Github PK
View Code? Open in Web Editor NEWCommand line script that downloads subtitles from hulu.com
License: MIT License
Command line script that downloads subtitles from hulu.com
License: MIT License
i have done everything and it still will only download single episodes
does not work on win10
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
Hulusubs_dl_Error_Log for "Castle Rock"
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
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
I am not quite sure what you need so let me know and I will promptly respond.
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?
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.
When converting to SRT format there are a lot of incorrect newlines being generated.
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 :(
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'))
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
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': ''}
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
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'```
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.
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!
Enter The URL of Series or an Episode : http://www.hulu.com/doc-mcstuffins
Will Be Downloading The Subs For Whole Series ...
Writing Links to the File...
http://www.hulu.com/watch/936034
Top Lamb / Molly Molly Mouthful - Doc McStuffins at Hulu</title>
Downloading Subs From : http://assets.huluim.com/captions_webvtt/21/60718021_US_en_en.vtt
[Error 3] The system cannot find the path specified: 'Top Lamb / Molly Molly Mouthful'
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!
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!
Season 02 has Dub which has cc that I want to download but can't because when I paste the link it download cc but since it also has Subtitled version and replaces with eng sub. is there a way where the filename could be change for Dub and Sub?
https://www.hulu.com/series/the-irregular-at-magic-high-school-80e76834-7c30-45fe-bcaa-1f4ace6a99da
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>
So I was downloading all of the English Subtitles for the Japan Dub of Sonic X, when I ran into this error: https://cdn.discordapp.com/attachments/310416600635408384/434064460462686212/Error.PNG
The Episode can be found here: https://www.hulu.com/watch/251398#i1,p68,d0
Is there any way to fix this?
when i click in, it show Page not found. Please fix the link Thank you so much
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.