Coder Social home page Coder Social logo

netflix's Introduction

netflix

Build Status pypi

A Python client for Netflix.

Installation

pip install netflix

Documentation

Netflix ID

  • Movie: The Intern
  • URL: https://www.netflix.com/watch/80047616
  • Netflix ID: 80047616

Movie

from netflix import Movie

movie = Movie("80047616")
print(movie.name)  # 'The Intern'

Attributes

  • name: 'The Intern'
  • genre: 'Comedies'
  • description: 'Harried fashion entrepreneur Jules gets a surprise boost from Ben, a 70-year-old widower who answers an ad seeking a senior intern.'
  • image_url: 'https://occ-0-2774-2773.1.nflxso.net/dnm/api/v6/6AYY37jfdO6hpXcMjf9Yu5cnmO0/AAAABW8TwHJmfYqEjUj0YK4Y2ugq-sKIN-Gi8OBaDjOh3SbRSBdbEXlmpWEpHTbrO2CLDdo7yxRl7MTm5YtYa1-71Kg1o-7o.jpg?r=2ce'
  • metadata

TVShow

from netflix import TVShow

tv_show = TVShow("80192098")
print(tv_show.name)  # 'Money Heist'

Attributes

  • name: 'Money Heist'
  • genre: 'TV Thrillers'
  • description: 'Eight thieves take hostages and lock themselves in the Royal Mint of Spain as a criminal mastermind manipulates the police to carry out his plan.'
  • image_url: 'https://occ-0-2774-2773.1.nflxso.net/dnm/api/v6/6AYY37jfdO6hpXcMjf9Yu5cnmO0/AAAABRQ7vD9Tg2GJUxLlWRw85C9Ln3j_m3dMvVhpf-LAJLDg9JNVsQKRyqvwlH28uoYY_gW7ROp1CI1PYdkBIlJwxpB8_VzK.jpg?r=8f1'
  • metadata

Extra

Fetch Instantly

Default is True

from netflix import Movie

movie = Movie("80047616", fetch_instantly=False)

# Do something.

movie.fetch()

Metadata

from netflix import Movie

movie = Movie("80047616")

print(movie.metadata)
"""
{
  '@context': 'http://schema.org',
  '@type': 'Movie',
  'url': 'https://www.netflix.com/tr-en/title/80047616',
  'contentRating': '16+',
  'name': 'The Intern',
  'description': 'Harried fashion entrepreneur Jules gets a surprise boost from Ben, a 70-year-old widower who answers an ad seeking a senior intern.',
  'genre': 'Comedies',
  'image': 'https://occ-0-2773-2774.1.nflxso.net/dnm/api/v6/6AYY37jfdO6hpXcMjf9Yu5cnmO0/AAAABW8TwHJmfYqEjUj0YK4Y2ugq-sKIN-Gi8OBaDjOh3SbRSBdbEXlmpWEpHTbrO2CLDdo7yxRl7MTm5YtYa1-71Kg1o-7o.jpg?r=2ce',
  'dateCreated': '2019-8-31',
  'actors': [{
    '@type': 'Person',
    'name': 'Robert De Niro'
  }, {
    '@type': 'Person',
    'name': 'Anne Hathaway'
  }, {
    '@type': 'Person',
    'name': 'Rene Russo'
  }, {
    '@type': 'Person',
    'name': 'Anders Holm'
  }, {
    '@type': 'Person',
    'name': 'JoJo Kushner'
  }, {
    '@type': 'Person',
    'name': 'Andrew Rannells'
  }, {
    '@type': 'Person',
    'name': 'Adam Devine'
  }, {
    '@type': 'Person',
    'name': 'Zack Pearlman'
  }, {
    '@type': 'Person',
    'name': 'Jason Orley'
  }, {
    '@type': 'Person',
    'name': 'Christina Scherer'
  }],
  'creator': [],
  'director': [{
    '@type': 'Person',
    'name': 'Nancy Meyers'
  }]
}
"""

netflix's People

Contributors

efe avatar

Watchers

James Cloos avatar

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.