Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/efe/netflix
A Python metadata client for Netflix. 🎥
https://github.com/efe/netflix
Last synced: 2 months ago
JSON representation
A Python metadata client for Netflix. 🎥
- Host: GitHub
- URL: https://github.com/efe/netflix
- Owner: efe
- License: mit
- Created: 2019-10-10T15:58:31.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-22T09:16:55.000Z (almost 4 years ago)
- Last Synced: 2024-10-13T14:16:59.233Z (3 months ago)
- Language: Python
- Homepage: https://pypi.org/project/netflix/
- Size: 17.6 KB
- Stars: 14
- Watchers: 3
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# netflix
[![Build Status](https://travis-ci.org/efe/netflix.svg?branch=master)](https://travis-ci.org/efe/netflix) [![pypi](https://img.shields.io/pypi/v/netflix.svg)](https://pypi.org/project/netflix/)
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
```python
from netflix import Moviemovie = 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
```python
from netflix import TVShowtv_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`
```python
from netflix import Moviemovie = Movie("80047616", fetch_instantly=False)
# Do something.
movie.fetch()
```#### Metadata
```python
from netflix import Moviemovie = 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'
}]
}
"""
```