Skip to main content

Récupération des scéances de cinémas sur allociné

Project description

Package

https://pypi.org/project/allocine-seances/

pip install allocine-seances

Warning

  • v0.0.11 : Modification du paramètre day_shift en date_str
  • v0.0.12 : Correction du endpoint /cinema

Description

Objectif : récupération des horaires des séances de cinéma.

Les méthodes get_top_villes(), get_departements() et get_circuit() retournent un id d’emplacement.

La méthode get_cinema(id_location) retourne un id de cinéma pour un emplacement donné.

La méthode get_showtime(id_cinema, date_str) retourne la liste des séances pour un cinema donné et un jour.

Import

from allocineAPI.allocineAPI import allocineAPI

api = allocineAPI()

Liste des méthodes

Listes des villes

ret = api.get_top_villes()
# {'id': 'ville-87860', 'name': 'Aix-en-Provence'}
# {'id': 'ville-96943', 'name': 'Bordeaux'}
# {'id': 'ville-85268', 'name': 'Cannes'}
# {'id': 'ville-110514', 'name': 'Clermont-Ferrand'}
# ...

Liste des départements

ret = api.get_departements()
# {'id': 'departement-83191', 'name': 'Ain'}
# {'id': 'departement-83178', 'name': 'Aisne'}
# {'id': 'departement-83111', 'name': 'Allier'}
# {'id': 'departement-83185', 'name': 'Alpes de Haute-Provence'}
# ...

Liste des circuits

ret = api.get_circuit()
# {'id': 'circuit-81002', 'name': 'Pathé Cinémas'}
# {'id': 'circuit-81005', 'name': 'CGR'}
# {'id': 'circuit-4750', 'name': 'UGC'}
# {'id': 'circuit-81027', 'name': 'Megarama'}
# ...

liste des cinemas

cinemas = api.get_cinema("departement-83191")
# {'id': 'B0242', 'name': 'Gaumont Stade de France - 4DX', 'address': '8, rue du Mondial 98 93210 Saint-Denis'}
# {'id': 'C0037', 'name': 'Pathé Alésia - Dolby Cinema', 'address': '73 avenue du Général Leclerc 75014 Paris 14e arrondissement'}
# {'id': 'C0116', 'name': 'Gaumont Aquaboulevard - 4DX', 'address': '8-16, rue du Colonel-Pierre-Avia 75015 Paris 13e arrondissement'}
# {'id': 'C0161', 'name': 'Pathé Convention', 'address': '27, rue Alain-Chartier 75015 Paris'}
# ...

liste des seances

data = api.get_showtime("W2920", "2024-01-01")
# {'title': 'Les Aventures de Ricky', 'duration': '1h 25min', 'VF': [], 'VO': ['2023-04-15T13:45:00', '2023-04-15T15:45:00']}
# {'title': "Donjons & Dragons : L'Honneur des voleurs", 'duration': '2h 14min', 'VF': [], 'VO': ['2023-04-15T10:30:00', '2023-04-15T13:45:00', '2023-04-15T17:00:00', '2023-04-15T18:25:00', '2023-04-15T21:00:00']}
# {'title': 'Une histoire d’amour', 'duration': '1h 30min', 'VF': [], 'VO': ['2023-04-15T14:40:00', '2023-04-15T16:45:00', '2023-04-15T19:50:00', '2023-04-15T21:55:00']}
# {'title': 'Princes et princesses : le spectacle au cinéma', 'duration': '1h 00min', 'VF': [], 'VO': ['2023-04-15T10:50:00']}
# ...

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

allocine_seances-0.0.14.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

allocine_seances-0.0.14-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file allocine_seances-0.0.14.tar.gz.

File metadata

  • Download URL: allocine_seances-0.0.14.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for allocine_seances-0.0.14.tar.gz
Algorithm Hash digest
SHA256 5f575695f3e4fd02e8c8b9c7b0ff6694b12d62d5e0942397d42769755b8abc41
MD5 1a7546ec652e1de1e508a11b68369d8d
BLAKE2b-256 568b7f1c62f6327e79626fab1387f4570386e888a2e1fe03f4d81e14b4256aa8

See more details on using hashes here.

File details

Details for the file allocine_seances-0.0.14-py3-none-any.whl.

File metadata

File hashes

Hashes for allocine_seances-0.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 ca777fd1d5d414e924b7760c02b9a84ea5eb44c96b41ffc089905dfb2e684c1c
MD5 0423e01817cce6cb45262a8f6cfc0c70
BLAKE2b-256 adfb811895e08307b77a31305b0928cdfc05093d8f4b5c9d885c3d271dbdfd86

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page