无法使用 rauth

在网站上下文中,我试图让我的用户登录他们的 Netflix 帐户,以便检索观看历史记录并从中获取一些统计信息。如果我从 cookie 中获取 ShaktiID 和 NetflixId 并将其放入我的请求中,它就可以正常工作,但似乎无法以用户友好的方式检索此信息。

然后我进一步查看并找到了 rauth,并描述了 here 可以登录 Netflix。但是这似乎不再起作用,或者我没有正确地做所有事情。

运行提供的代码 here 时出现的错误如下:

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>'"

我尝试将 API URL 从 http://api-public.netflix.com/...https://api-user.netflix.com/... 更改为 https://www.netflix.com/...,如在其他论坛中看到的那样,但我得到以下信息:

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\''

我还没有真正研究过解码器失败的问题(让我们稍后再讨论),我的主要问题是Error 400: Missing oauth_token

据我所知,Netflix(自 2014 年以来)不再提供对其 API 的访问,但据我从链接的帖子中了解到,在这种情况下不需要?

知道这是否可能吗?

wsg19870213 回答:无法使用 rauth

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/1154072.html

大家都在问