Giter Club home page Giter Club logo

netflix-login-api's People

Contributors

gooogie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

netflix-login-api's Issues

Always returns True , Working

I've successfully installed the API with Python 3 and required dependencies with a few changes:

  • Python3 requires brackets around Print function.
  • Quotes seem to be needed around the proxy IP, otherwise an error is returned:

SyntaxError: invalid syntax

It did not work with the default proxy, and since I am not using a proxy server I set 127.0.0.1:80

Now the script always returns True, Working, even if the credentials (email or password) are wrong.

This is how it looks like now:

import Netflix
print(Netflix.login("[email protected]","abcdef","127.0.0.1:80"))

Non è un problema ma un chiarimento sullo script

Spero di aver capito bene e che tu sia italiano dall' it-IT delle api per netflix lol :)
Ascolta sto prendendo spunto dal tuo lavoro e per prima cosa sto provando a capire come funzionano le richieste facendole con curl manualmente... Seguendo il tuo script faccio la seguente richiesta che mi dovrebbe restituire il csrf_token:

curl -H "Accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8" -H "Accept-Encoding":"gzip, deflate, sdch, br" -H "Accept-Language":"it-IT,it;q=0.8,en-US;q=0.6,en;q=0.4" -H "User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36" https://www.netflix.com/it/login

In realtà così non è, la pagina non mi restituisce nulla..
Se provo invece a farmi restituire l'html non capisco se c'è il token tra questi parametri o meno:

curl -H "Accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8" -H "Accept-Encoding":"gzip, deflate, sdch, br" -H "Accept-Language":"it-IT,it;q=0.8,en-US;q=0.6,en;q=0.4" -H "User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36" -D - https://www.netflix.com/it/login

Risultato richiesta:

HTTP/1.1 302 Found
Cache-Control: no-cache, no-store
Date: Tue, 22 May 2018 19:12:02 GMT
Edge-Control: no-cache, no-store
location: https://www.netflix.com/login?locale=it-IT&cookieCheck=true
req_id: a77995ab-7009-42b3-bd74-f40d83ad23c3
Server: shakti-prod i-0978411aeae6bdfad
Set-Cookie: SecureNetflixId=v%3D2%26mac%3DAQEAEQABABQ1LbUfPnz8iQ_IQyr480OEd3kQYGqsX_Q.%26dt%3D1527016321815; Domain=.netflix.com; Path=/; Expires=Fri, 01 Jan 2038 00:00:00 GMT; HttpOnly; Secure
Set-Cookie: NetflixId=v%3D2%26ct%3DBQAOAAEBEKTaR8PhOHrtCeyI0AoNyHGBoNum8pKd8I0vS49tV3zzyLK0631Ue73dfgMQYbvE7qPftjth_1JWCevjHOtLAdxcfW24T_0oeDRddv_1DIFzeb8iZkmArfZBn4G9XWi0FaxNcxWYemsnTGU4G3eUC_LFsQDss-IcxGxYTSyvdYXOs_-bQnl9EcWLvLopzO9nbNSffa-C_UaFPKIQ8Qsx3LTX8RWwI79zZEdER1Zl95Q1zf6NVQFsl4KyHTN5GIyCMNffGrlNhcPl0VsYEN5zXAJoxKXdddNMXLC9HJg5J9ZSac2dgiEphGZzz50baErPIOdMgbUNnLlL0Rmbd_2-6gcmzH7z0PkjsTPaXVF4VjP6qG08Z1jXRk-Y-tfTlWtXHIIKZgcWK_Zc5ApEheR23bkwouFE5tgAw7xFeWUhMYWBJHGIfxpyhLHT86KLRIk_CBm2D6EQH7B8GB7zNNOUXj2ZlnrTV62-SF3rtEHYpGn9lEZoWkkDy5-M_fmGkAfOcaO_ZcI4N2j1BpOCa8ndHUer5NZCR2R1Nq9lZv_LWp_Ar-Tys-bZSuqI2mqY1Y7FspBe%26bt%3Ddbl%26ch%3DAQEAEAABABS8niKF86qdYAan9gS2KZ2eTqgbk6AgFsU.%26mac%3DAQEAEAABABTXhtsH1X6873608vxlDSN_nl7vEkVJJQ0.; Domain=.netflix.com; Path=/; Expires=Thu, 23 May 2019 01:00:48 GMT; HttpOnly
Set-Cookie: memclid=f362c0cc-95c3-46d1-8617-d9b0506b8d89; Max-Age=31536000; Expires=Wed, 22 May 2019 19:12:02 GMT; Path=/; Domain=.netflix.com
Set-Cookie: nfvdid=BQFmAAEBEA4FpaJreLKmQCXHYxmMl55AgDYjblfwiFNFaC6b9NfedNLTO8p40l5ThcHVi0z0SF3pWV%2BX5jD3ue%2BcLZeez0UD0BZV%2B0PCz9wq2GWNt7fWQw%3D%3D; Max-Age=26265600; Expires=Fri, 22 Mar 2019 19:12:02 GMT; Path=/; Domain=.netflix.com
Strict-Transport-Security: max-age=31536000
Via: 1.1 i-0aea6a6be779a8ea5 (us-east-1)
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
X-Netflix-From-Zuul: true
X-Netflix.nfstatus: 1_1
X-Netflix.proxy.execution-time: 530
X-Originating-URL: https://www.netflix.com/it/login
X-Xss-Protection: 1; mode=block; report=https://www.netflix.com/ichnaea/log/freeform/xssreport
Content-Length: 0
Connection: keep-alive

Al fine di evitare di parlare qui sopra puoi contattarmi su Telegram o su discord (Virgula#3499)
Te ne sarei grato :)

:(

I was just kidding there isn't :(

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.