Skip to main content

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

Project description

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 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.2.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

allocine_seances-0.0.2-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file allocine-seances-0.0.2.tar.gz.

File metadata

  • Download URL: allocine-seances-0.0.2.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for allocine-seances-0.0.2.tar.gz
Algorithm Hash digest
SHA256 41cf963585df0fa825ef5c0ccc9d36f025dc74f9e25054bc2dca796bf329f5ab
MD5 517766b71817b3af21e388e101b6251f
BLAKE2b-256 96223d8a7e379170766b0486327d34d1f4412efc08ba5b1b3558a1978bbf92f8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for allocine_seances-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2300b80247dfe676996acf8e31434444b1285dc4db9d86eb210c9e7b66906067
MD5 60e088c4bb6ec3d1ceb98eb649fb1759
BLAKE2b-256 6834e121e2f789d8d0eee71642d8f71804c8cf82b09e5afacf51359e75f2ead6

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