Comments (17)
Yeah, I found a way of getting that working. But, there was some issue with the cookies. I mean, there was some issue with the library that was handling the cookies and session. Will be able to take a look at it again later on. Not now.
from hulusubs_dl.
Will you make this working again @Xonshiz ?
from hulusubs_dl.
Any updates on this? Would be greatly appreciated. @Xonshiz
from hulusubs_dl.
CI build seems to be failing. I'll take a look over the weekend and then around Sunday, I'll try to drop a working exe.
from hulusubs_dl.
I'm not sure what's happening. I would need a Hulu login to see how things are working out. I'm trying for a free account, but, since Hulu isn't in my country and I don't really want to link my card with it, let's see how it goes.
i can give you a hulu account for test,if you have time. can you receive email on [email protected]? i can send account to you
from hulusubs_dl.
Yes, it's a known issue. I do have a way of getting the subs, but I don't really have a time to update this script. Maybe I'll take a look at it later on. I tried putting the working into this script, it didn't work.
from hulusubs_dl.
Any help on fixing this would be very much appreciated! (Y)
from hulusubs_dl.
@Xonshiz Any chance of adding a way to also download video in the future?
from hulusubs_dl.
Any updates on this issue and maby a new working windows exe to dl? 😀
from hulusubs_dl.
Hi there Xonshiz. After I enter the URL and it asks for SRT or VTT, no matter what I put in the whole thing will crash right after. Do you know about this bug? It says:
Enter a URL for hulu.com : https://www.hulu.com/watch/07fdd238-6c96-49e5-820a-1f7496005291
Which format do you want? (SRT or VTT) : SRT
Traceback (most recent call last):
File "HuluSubsDownloader.py", line 127, in
File "HuluSubsDownloader.py", line 21, in init
File "HuluSubsDownloader.py", line 52, in single_episode
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in position 90: ordinal not in range(128)
[19536] Failed to execute script HuluSubsDownloader
from hulusubs_dl.
It took me an embarrassingly long time to debug this, but the current version of BeautifulSoup doesn't accept javascript strings as "text", so:
data_json = json.loads(str(page_source.find_all('script', {'type': 'application/json'})[0].text))
needs to be
data_json = json.loads(str(page_source.find_all('script', {'type': 'application/json'})[0].string))
if you are getting an error on that line, as it's attempting to convert an empty string.
from hulusubs_dl.
hi clayton-grey. i tried it,but still error
File HuluSubsDownloader.py", line 149, in
SubDownloader = HuluSubs(url=main_url, subtitle_type=sub_type)
File HuluSubsDownloader.py", line 22, in init
self.single_episode(self.url)
File HuluSubsDownloader.py", line 63, in single_episode
collection = [t for t in components if t["type"] == "collection_tabs"][0]["tabs"]
IndexError: list index out of range
from hulusubs_dl.
I'm not sure what's happening. I would need a Hulu login to see how things are working out. I'm trying for a free account, but, since Hulu isn't in my country and I don't really want to link my card with it, let's see how it goes.
from hulusubs_dl.
Yep, that would be great. You can send the credentials on that one. Thanks a lot @bond485 ! :)
from hulusubs_dl.
Yep, that would be great. You can send the credentials on that one. Thanks a lot @bond485 ! :)
i have send it to you, thanks a lot
from hulusubs_dl.
hi clayton-grey. i tried it,but still error
I cannot debug for you, but that looks like the error I was getting. It has been a while, so I do not remember it perfectly, but the issue is that the data cannot be fetched because BeautifulSoup is attempting to scrape the javascript code which contains the correct URL codes's for fetching the subtitle data for the given show URL - the whole reason this script is needed is because Hulu made it obtuse to find where the actual subtitle data lives. The originally posted code used the .text, which BeautifulSoup used to recognized with Javascript. The current version does not seem to; .string should return the correct block of javascript text for parsing. (You can debug this and see for yourself by finding "collection_tabs" bit in the Hulu source data, which helped me figure out which part of the source BeautifulSoup was trying to scrape in the early part of the script. You can do the whole process yourself by hand, of course, but it would be quite slow!)
from hulusubs_dl.
I've finally pushed an update to this tool. Do go through the new updated documentation because a lot of things have been changed and new features (proxy support, cli arguments etc.) have been added.
If anyone finds or gets a new bug, please feel free to open a new Issue.
from hulusubs_dl.
Related Issues (20)
- text.encode("utf-8") Instead of str() HOT 4
- SRT is causing too many new lines HOT 3
- attribute error/failure to execute? HOT 2
- Cannot Download Subtitles For Sonic X Japan Subbed Episode 71 HOT 1
- Some noob problems HOT 1
- Not working HOT 1
- does not work on win10 HOT 1
- Issue with special character HOT 9
- Issue 'latin-1' codec can't encode character '\u2026', when running the script HOT 12
- Japanese language support? HOT 4
- Windows 10: Response Code 400 HOT 25
- No subtitles are downloaded in TTML format HOT 2
- Windows 10: Error when attempting to download subs in the vtt format. HOT 3
- Season and episode number added to the movie subtitle HOT 3
- Renaming Issue HOT 4
- Keep Getting "Whoops! Seems like I can't connect to website. It's showing : <Response [400]>" HOT 4
- Response [400] HOT 3
- batch wont download the season only single episodes. HOT 1
- AttributeError: 'NoneType' object has no attribute 'group' HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hulusubs_dl.