Python FilmAffinity
This is a simple python scraping for the FilmAffinity.
.. image:: https://github.com/sergiormb/python_filmaffinity/workflows/Tests/badge.svg?branch=master
:target: https://github.com/sergiormb/python_filmaffinity/actions/workflows/python-test.yml?query=branch%3Amaster
.. image:: https://img.shields.io/github/license/mashape/apistatus.svg
:target: https://github.com/sergiormb/python_filmaffinity/blob/master/LICENSE.rst
.. image:: https://img.shields.io/pypi/pyversions/Django.svg
:target: https://pypi.python.org/pypi/python_filmaffinity/
.. image:: https://readthedocs.org/projects/python-filmaffinity/badge/?version=latest
:target: http://python-filmaffinity.readthedocs.io/en/latest/?badge=latest
Pip
::
pip install python-filmaffinity
From Source
::
git clone [email protected]:sergiormb/python_filmaffinity.git
cd python_filmaffinity
python setup.py install
Requirements
::
requests >= 2.0.1
requests-cache >= 0.4.13
bs4 >= 0.0.1
.. code-block:: python
import python_filmaffinity
service = python_filmaffinity.FilmAffinity()
movie = service.get_movie(title='Celda 211')
movie['title']
Celda 211
movie['rating']
7.7
movie['directors']
['Daniel Monzón']
movie['actors']
['Luis Tosar', 'Alberto Ammann', 'Antonio Resines', 'Carlos Bardem', 'Marta Etura', 'Vicente Romero', 'Manuel Morón', 'Manolo Solo', 'Fernando Soto', 'Luis Zahera', 'Patxi Bisquert', 'Félix Cubero', 'Josean Bengoetxea', 'Juan Carlos Mangas', 'Jesús Carroza']
language
Colombia: 'co'
Example
.. code-block:: python
import python_filmaffinity
service = python_filmaffinity.FilmAffinity(lang='en')
search
+-----------+----------+--------+-----------------------------------+ | Parameter | Required | Type | Description | +===========+==========+========+===================================+ | title | False | String | Search for the title of the movie | +-----------+----------+--------+-----------------------------------+ | cast | False | String | Search movies by actor | +-----------+----------+--------+-----------------------------------+ | director | False | String | Search movies by the director | +-----------+----------+--------+-----------------------------------+ | from_year | False | String | Search start date | +-----------+----------+--------+-----------------------------------+ | to_year | False | String | Search end date | +-----------+----------+--------+-----------------------------------+
.. code-block:: python
movies = service.search(cast='Nicolas Cage')
get_movie
+-----------+----------+--------+-----------------------------------+ | Parameter | Required | Type | Description | +===========+==========+========+===================================+ | id | False | String | FilmAffinity id | +-----------+----------+--------+-----------------------------------+ | title | False | String | Get movie by title | +-----------+----------+--------+-----------------------------------+ | trailer | False | Boolean| Return movie with trailer | +-----------+----------+--------+-----------------------------------+ | images | False | Boolean| Return movie with images | +-----------+----------+--------+-----------------------------------+
.. code-block:: python
movies = service.get_movie(title='Avatar')
movies = service.get_movie(id='495280')
top_filmaffinity
+-----------+----------+--------+-----------------------------------+ | Parameter | Required | Type | Description | +===========+==========+========+===================================+ | from_year | False | String | Search start date | +-----------+----------+--------+-----------------------------------+ | to_year | False | String | Search end date | +-----------+----------+--------+-----------------------------------+ | top | False | Integer| Number of elements | +-----------+----------+--------+-----------------------------------+
.. code-block:: python
movies = service.top_filmaffinity()
movies = service.top_filmaffinity(from_year=2010, to_year=2011)
top_premieres
+-----------+----------+--------+-----------------------------------+ | Parameter | Required | Type | Description | +===========+==========+========+===================================+ | top | False | Integer| Number of elements | +-----------+----------+--------+-----------------------------------+
.. code-block:: python
movies = service.top_premieres()
top_netflix, top_hbo, top_filmin, top_movistar, top_rakuten, top_tv_series
+-----------+----------+--------+-----------------------------------+ | Parameter | Required | Type | Description | +===========+==========+========+===================================+ | top | False | Integer| Number of elements | +-----------+----------+--------+-----------------------------------+
.. code-block:: python
movies = service.top_netflix()
movies = service.top_hbo(top=5)
movies = service.top_filmin()
movies = service.top_movistar()
movies = service.top_rakuten()
movies = service.top_tv_series()
recommend HBO, Netflix, Filmin, Movistar, Rakuten
+-----------+----------+--------+-----------------------------------+ | Parameter | Required | Type | Description | +===========+==========+========+===================================+ | trailer | False | Boolean| Return movie with trailer | +-----------+----------+--------+-----------------------------------+ | images | False | Boolean| Return movie with images | +-----------+----------+--------+-----------------------------------+
.. code-block:: python
movies = service.recommend_netflix()
movies = service.recommend_hbo()
movies = service.recommend_filmin()
movies = service.recommend_movistar()
movies = service.recommend_rakuten()
v0.0.19 (22-06-2021)
v0.0.18 (26-02-2021)
v0.0.17 (18-02-2021)
v0.0.15 (03-08-2020)
v0.0.14 (08-09-2018)
v0.0.13 (07-09-2018)
v0.0.12 (27-08-2018)
v0.0.11 (27-08-2018)
v0.0.1O (27-08-2018)
v0.0.09 (28-12-2017)
v0.0.8 (26-12-2017)
v0.0.7 (15-12-2017)
v0.0.6 (12-06-2017)
v0.0.5 (13-06-2017)
v0.0.4 (11-06-2017)
v0.0.3 (10-06-2017)
v0.0.2 (31-05-2017)
v0.0.1 (29-05-2017)
Authors
sergiormb.github.io <https://sergiormb.github.io>
_The MIT License (MIT)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Bumps ipython from 7.16.3 to 8.10.0.
Sourced from ipython's releases.
See https://pypi.org/project/ipython/
We do not use GitHub release anymore. Please see PyPI https://pypi.org/project/ipython/
15ea1ed
release 8.10.0560ad10
DOC: Update what's new for 8.10 (#13939)7557ade
DOC: Update what's new for 8.10385d693
Merge pull request from GHSA-29gw-9793-fvw7e548ee2
Swallow potential exceptions from showtraceback() (#13934)0694b08
MAINT: mock slowest test. (#13885)8655912
MAINT: mock slowest test.a011765
Isolate the attack tests with setUp and tearDown methodsc7a9470
Add some regression tests for this changefd34cf5
Swallow potential exceptions from showtraceback()Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Bumps setuptools from 49.2.1 to 65.5.1.
Sourced from setuptools's releases.
v65.5.1
No release notes provided.
v65.5.0
No release notes provided.
v65.4.1
No release notes provided.
v65.4.0
No release notes provided.
v65.3.0
No release notes provided.
v65.2.0
No release notes provided.
v65.1.1
No release notes provided.
v65.1.0
No release notes provided.
v65.0.2
No release notes provided.
v65.0.1
No release notes provided.
v65.0.0
No release notes provided.
v64.0.3
No release notes provided.
v64.0.2
No release notes provided.
v64.0.1
No release notes provided.
v64.0.0
No release notes provided.
v63.4.3
No release notes provided.
v63.4.2
No release notes provided.
... (truncated)
Sourced from setuptools's changelog.
v65.5.1
Misc ^^^^
- #3638: Drop a test dependency on the
mock
package, always use :external+python:py:mod:unittest.mock
-- by :user:hroncok
- #3659: Fixed REDoS vector in package_index.
v65.5.0
Changes ^^^^^^^
- #3624: Fixed editable install for multi-module/no-package
src
-layout projects.- #3626: Minor refactorings to support distutils using stdlib logging module.
Documentation changes ^^^^^^^^^^^^^^^^^^^^^
- #3419: Updated the example version numbers to be compliant with PEP-440 on the "Specifying Your Project’s Version" page of the user guide.
Misc ^^^^
- #3569: Improved information about conflicting entries in the current working directory and editable install (in documentation and as an informational warning).
- #3576: Updated version of
validate_pyproject
.v65.4.1
Misc ^^^^
- #3613: Fixed encoding errors in
expand.StaticModule
when system default encoding doesn't match expectations for source files.- #3617: Merge with pypa/[email protected] including fix for pypa/distutils#181.
v65.4.0
Changes ^^^^^^^
- #3609: Merge with pypa/[email protected] including support for DIST_EXTRA_CONFIG in pypa/distutils#177.
v65.3.0
... (truncated)
a462cb5
Bump version: 65.5.0 → 65.5.1de35d8b
Merge pull request #3656 from bmorris3/typos58e23de
Update changelog. Ref #3659.43a9c9b
Limit the amount of whitespace to search/backtrack. Fixes #3659.5791343
Add test capturing failed expectation. Ref #3659.1f97905
⚫ Fade to black.6254567
Remove workaround for emacs.729b180
⚫ Fade to black.c068081
Typo correctionsf777a40
Suppress deprecation warning in --rsyncdir. Workaround for #3655.Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Bumps certifi from 2020.6.20 to 2022.12.7.
9e9e840
2022.12.07b81bdb2
2022.09.24939a28f
2022.09.14aca828a
2022.06.15.2de0eae1
Only use importlib.resources's new files() / Traversable API on Python ≥3.11 ...b8eb5e9
2022.06.15.147fb7ab
Fix deprecation warning on Python 3.11 (#199)b0b48e0
fixes #198 -- update link in license9d514b4
2022.06.154151e88
Add py.typed to MANIFEST.in to package in sdist (#196)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
I get this warning, repeated several times:
/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py:981: InsecureRequestWarning: Unverified HTTPS request is being made to host 'www.sslproxies.org'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
Deleted spaces at the end of the title (@jcea) Added original_title (@jcea)
v0.0.13 (07-09-2018)