Giter Site home page Giter Site logo

Comments (17)

Xonshiz avatar Xonshiz commented on May 23, 2024 5

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.

madnesofjuice avatar madnesofjuice commented on May 23, 2024 2

Will you make this working again @Xonshiz ?

from hulusubs_dl.

DubbyParrot avatar DubbyParrot commented on May 23, 2024 2

Any updates on this? Would be greatly appreciated. @Xonshiz

from hulusubs_dl.

Xonshiz avatar Xonshiz commented on May 23, 2024 1

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.

bond485 avatar bond485 commented on May 23, 2024 1

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.

Xonshiz avatar Xonshiz commented on May 23, 2024

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.

adrianlm1 avatar adrianlm1 commented on May 23, 2024

Any help on fixing this would be very much appreciated! (Y)

from hulusubs_dl.

323Wicked avatar 323Wicked commented on May 23, 2024

@Xonshiz Any chance of adding a way to also download video in the future?

from hulusubs_dl.

FluffyDev2019 avatar FluffyDev2019 commented on May 23, 2024

Any updates on this issue and maby a new working windows exe to dl? 😀

from hulusubs_dl.

theepicj19 avatar theepicj19 commented on May 23, 2024

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.

clayton-grey avatar clayton-grey commented on May 23, 2024

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.

bond485 avatar bond485 commented on May 23, 2024

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.

Xonshiz avatar Xonshiz commented on May 23, 2024

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.

Xonshiz avatar Xonshiz commented on May 23, 2024

Yep, that would be great. You can send the credentials on that one. Thanks a lot @bond485 ! :)

from hulusubs_dl.

bond485 avatar bond485 commented on May 23, 2024

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.

clayton-grey avatar clayton-grey commented on May 23, 2024

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.

Xonshiz avatar Xonshiz commented on May 23, 2024

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)

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.