Get information about movies times in your favorite theaters.
kalliope install --git-url https://github.com/vbouchet31/kalliope-allocine.git
parameter | required | choices | comment |
---|---|---|---|
option | yes | getShowTimesList | See more details in dedicated paragraph |
theater | no | Only needed if you select an option which requires a theater parameter. |
"getShowTimesList": Get today's show time for the given theater.
The theater code is the Allocine's internal unique ID associate to the theater which you can get from the URL of the theater's page on Allocine. For example, "P0057" is the theater code for "Gaumont Toulouse Wilson" theater as per its page on Allocine (http://www.allocine.fr/seance/salle_gen_csalle=P0057.html).
Name | Description | Type | sample |
---|---|---|---|
events | A list of events. | list | Each event has the following information: event['name'] is the movie name, event['times'] is the list of times, event['all_times_as_string'] are the same times as a string. |
---
- name: "get-gaumont-show-time-list"
signals:
- order: "Which movie at Gaumont"
- order: "Which movie"
neurons:
- allocine:
theater: "P0057"
option: "getShowTimesList"
file_template: "templates/allocine.j2"
Next showtimes today are:
{% for key, event in events.items() %}
{{ event['name'] }} at {{ event['all_times_as_string'] }}
{% endfor %}