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

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, day_shift) retourne la liste des séances pour un cinema donné et un jour. le paramètre day_shift (entier positif) représente le décalage en jour par rapport à la date actuelle.

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")
# {'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.10.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

allocine_seances-0.0.10-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: allocine_seances-0.0.10.tar.gz
  • Upload date:
  • Size: 6.8 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.10.tar.gz
Algorithm Hash digest
SHA256 7035a386424e4482932de6db610df5aa203ea0e648204456d96bce98c9fbe482
MD5 95ec7198d102c2045d90a01fc762bb08
BLAKE2b-256 f03a79016817a3da7b43f5d0cc3a65921e7ce3adc96e3e699758f36d629a7541

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for allocine_seances-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 80c1564fc0ef9c57ba7ce8130eb770bf7c99120add922b2779ca370ddd6c93d0
MD5 ed4ac6f7058e72f8ceb1fcbef4fc2a6a
BLAKE2b-256 b06d1143ff6984503fd9d8688cac063af94a6ef4e42d6d91357242a0d73ba3b8

See more details on using hashes here.

Supported by

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