gooogie / netflix-login-api Goto Github PK
View Code? Open in Web Editor NEWAn unofficial wrapper for Netflix's services
License: GNU General Public License v3.0
An unofficial wrapper for Netflix's services
License: GNU General Public License v3.0
I've successfully installed the API with Python 3 and required dependencies with a few changes:
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"))
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 :)
1234
I was just kidding there isn't :(
Hilarious
Originally posted by @Megamouse in RPCS3/rpcs3#11801 (comment)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.