Security News
How Threat Actors are Abusing GitHub’s File Upload Feature to Host Malware
GitHub is susceptible to a CDN flaw that allows attackers to host malware on any public repository.
netflix2
Advanced tools
Readme
A client library to access the not-so-public Netflix Shakti API.
npm install netflix2
All functions take standard Node callbacks:
function callback (error, result) {}
var Netflix = require('netflix2')
var netflix = new Netflix()
or
var netflix = require('netflix2')()
You must call login
before using any of the other below functions. This will set cookies, API endpoints, and the authURL that must used to make API calls.
var credentials = {
email: 'youremail@example.com',
password: 'yourpassword'
}
netflix.login(credentials, callback)
Browse movies: pass the genre (id), which page number (if more are available) and how many items per page to display along with the callback for the result.
/**
* Browse movies, to simply get all films use Category ID 34399
*
* @param genreId The Netflix Category ID, Like https://www.netflix.com/browse/genre/34399
* @param page The content is paged, this is the page number.
* @param perPage How many items do you want per page?
* @param callback Function to be called when the request is finished.
*/
netflix.browse(genreId, page, perPage, function (error, result) {
if(error){
console.error(error);
} else {
console.log(JSON.stringify(result));
}
})
netflix.getProfiles(function (error, profiles) {
profiles === [
{"firstName":"Lana", "guid":"BLRHT3T5WVF5TLL6VDX2Z2NA2E", ...},
{"firstName":"Danielle", "guid":"CPPS2FVBJVBNJPRKNBYHEWC524", ...},
...
]
})
Functions like getRatingHistory
and getRatingHistory
operate in the context of the current profile. Use switchProfile
to change the current profile. Find the profile GUID using getProfiles
above.
netflix.switchProfile(guid, callback)
netflix.getRatingHistory(function (error, ratings) {
ratings === [
{"title":"Futurama","movieID":70153380,"yourRating":4.0, ...},
{"title":"Super Troopers","movieID":60022689,"yourRating":4.0, ...},
...
]
})
netflix.getViewingHistory(function (error, result) {
if(error){
console.error(error);
} else {
console.log(JSON.stringify(result));
}
})
Hide a single episode / a movie or an entire series from viewing activity
// Hide single episode / movie
netflix.hideSingleEpisodeFromViewingHistory(movieID, function (error, result){
if(error){
console.error(error);
} else {
console.log(JSON.stringify(result));
}
})
// Hide entire series
netflix.hideEntireSeriesFromViewingHistory(movieID, function (error, result){
if(error){
console.error(error);
} else {
console.log(JSON.stringify(result));
}
})
Hide the complete viewing history. Note: this may not always reset the viewing history per series
/**
* Hides ALL viewing history: this may not always reset the viewing history per series (**no UNDO!**)
* use hideEntireSeriesFromViewingHistory passing the movieID to reset that series' history back
* to the first episode
*/
netflix.hideAllViewingHistory(function (error, result){
if(error){
console.error(error);
} else {
console.log(JSON.stringify(result));
}
})
On Netflix, users used to rate videos with stars. Then Netflix switched over to thumbs and now some users don't even know about the stars. You can set both types of ratings by using these two functions:
netflix.setStarRating(movieID, rating, callback)
netflix.setThumbRating(movieID, rating, callback)
netflix.getActiveProfile(function (error, result){
if(error){
console.error(error);
} else {
console.log(JSON.stringify(result));
}
})
console.log(netflix.getAvatarUrl(avatarName, size));
netflix.setAvatar(avatarName, callback);
Use of this software may constitute a breach in the Netflix Terms of Use and/or the End User License Agreement. Use at your own risk.
FAQs
A client library to access the not-so-public Netflix Shakti API.
The npm package netflix2 receives a total of 13 weekly downloads. As such, netflix2 popularity was classified as not popular.
We found that netflix2 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub is susceptible to a CDN flaw that allows attackers to host malware on any public repository.
Security News
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.