Login in to Netflix and provide cookies and encryption keys.
Please read the Netflix Terms of Use before using this module.
npm install netflix-login
import netflixLogin from 'netflix-login/login';
import netflixCrypto from 'netflix-login/crypto';
const options = {
useCache: true,
cachePath: 'tmp',
};
const username = 'johnf@inodes.org';
const password = 'secret';
netflixLogin.login(username, password, options)
.then(authData => netflixCrypto.fetchCryptoKeys(authData, options))
.then(data => console.error(data))
.catch((error) => {
console.error('ERROR');
console.error(error);
});
After checking out the repo, run npm test
to run the tests.
To release a new version:
- npm test
- npm version major|minor|patch
- npm publish
This will run the tests, update the version, create a git tag for the version, push git commits and tags. Publish the module file to npmjs.com.
Bug reports and pull requests are welcome on GitHub at https://github.com/johnf/netflix-login-node. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
The gem is available as open source under the terms of the ISC License.