Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
190 views
in Technique[技术] by (71.8m points)

Cannot get oauth_token from Netflix using rauth

In a website context, I'm trying to get my users to login to their Netflix account in order to retrieve the viewing history and get some stats from it. It works fine if I get the ShaktiID and NetflixId from the cookie and put that into my request but it seems that there is no way to retrieve this information in a user-friendly way.

I then looked further and found rauth and it was described here that it could login into Netflix. However this no longer seems to work, or I am not doing everything correctly.

The error I get when running the code provided here is the following:

KeyError: "Decoder failed to handle oauth_token with data as returned by provider. A different decoder may be needed.
Provider returned: b'<status>\n  <status_code>500</status_code>\n 
<message>Filter threw Exception</message>\n</status>'"

I tried changing the API URLs from http://api-public.netflix.com/... and https://api-user.netflix.com/... to https://www.netflix.com/... as seen in other forums but then I get the following:

KeyError: 'Decoder failed to handle oauth_token with data as returned by provider. A different decoder may be needed.
Provider returned: b'<?xml version="1.0" standalone="yes"?>\n\n<status>\n  
<status_code>400</status_code>\n  <message>Missing oauth_token</message>\n</status>\n''

I haven't really looked into the Decoder failing yet (let's keep that for later), my main issue is the Error 400: Missing oauth_token.

As I understood, Netflix is (since 2014) no longer providing access to their API, but from I understand from the linked post, it is not needed in that case?

Any idea if this is even possible?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...