summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-netflix.spec458
-rw-r--r--sources1
3 files changed, 460 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..2624834 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/netflix-0.1.1.tar.gz
diff --git a/python-netflix.spec b/python-netflix.spec
new file mode 100644
index 0000000..ea25106
--- /dev/null
+++ b/python-netflix.spec
@@ -0,0 +1,458 @@
+%global _empty_manifest_terminate_build 0
+Name: python-netflix
+Version: 0.1.1
+Release: 1
+Summary: A Python client for Netflix.
+License: Apache-2.0
+URL: https://github.com/efe/netflix
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/55/5e/849c891a3898e4de00cb9407a99a141d704dacd2a247997095ccb38bfa60/netflix-0.1.1.tar.gz
+BuildArch: noarch
+
+Requires: python3-requests
+Requires: python3-beautifulsoup4
+
+%description
+# 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 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
+
+```python
+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`
+
+```python
+from netflix import Movie
+
+movie = Movie("80047616", fetch_instantly=False)
+
+# Do something.
+
+movie.fetch()
+```
+
+#### Metadata
+
+```python
+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'
+ }]
+}
+"""
+```
+
+
+%package -n python3-netflix
+Summary: A Python client for Netflix.
+Provides: python-netflix
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-netflix
+# 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 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
+
+```python
+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`
+
+```python
+from netflix import Movie
+
+movie = Movie("80047616", fetch_instantly=False)
+
+# Do something.
+
+movie.fetch()
+```
+
+#### Metadata
+
+```python
+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'
+ }]
+}
+"""
+```
+
+
+%package help
+Summary: Development documents and examples for netflix
+Provides: python3-netflix-doc
+%description help
+# 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 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
+
+```python
+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`
+
+```python
+from netflix import Movie
+
+movie = Movie("80047616", fetch_instantly=False)
+
+# Do something.
+
+movie.fetch()
+```
+
+#### Metadata
+
+```python
+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'
+ }]
+}
+"""
+```
+
+
+%prep
+%autosetup -n netflix-0.1.1
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-netflix -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 31 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1.1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..27906ba
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+18c833c11cd2c087644da952799d1386 netflix-0.1.1.tar.gz