M
M
Maxim Kalinin2017-09-19 10:55:36
CMS
Maxim Kalinin, 2017-09-19 10:55:36

How to get a schedule of screenings in a cinema for an Internet poster?

It is necessary to design an Internet poster for cinemas. You go to the site, choose a cinema, then look at the schedule of movie screenings. Without booking tickets.
What is the easiest way to do this? Interesting technologies, PL and algorithm.
Tell me how to take the schedule of screenings from the official website of the cinema and insert it into your poster? You can probably manually fill in the movie and schedule, but is it possible to
somehow simplify? This is an educational project. Need to do

something like:

You go to the site, choose a cinema (the nearest one, for example) You
fe0e56585b0d4d888cad88416dcdc024.PNG
choose a cinema, you choose a movie (you look at the schedule of screenings)
48d798185dfd403fbc255977aba5866f.PNG

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Entelis, 2017-09-19
@gMefesto

The simplest thing is to use the API of existing ticket services:
https://kassa.rambler.ru/ or kinohod.ru
They have quite normal APIs, but not public ones.
There is a schedule, and content for the film (pictures, actors, etc.) and the purchase functionality.
Call, meet, sign the contract and go.
Just in case - if the question is "how to make an analogue of a movie walker" - integration with the automated control system of cinemas is being done.
In the Russian Federation, two are actually used: ticketsoft and UCS.
They have modules for integration, or you can put your piece of iron in the cinema and go directly to their base.
But in any case, this is a very serious investment in software (integration modules are paid, I don’t know the prices now, it used to be ~ 250k for 1 cinema) - given that the market is already divided, I advise you to make ready-made services on the API.
Maxim Kalinin , if the educational project - in any case, make a sql database with a data structure (cinema-film-session-etc), then choose:
- make a mini-cms to edit this data in the database.
- and/or write cinema site parsers.
Mini cms I will need in any case, it's up to you to decide whether to stop there.
If you still want to write a parser:
a) you can hardcore download the page via curl, and parse it through regular expressions (regexp)
b) you can use ready-made solutions like simplehtmldom.sourceforge.net or https://code.google.com/ archive/p/phpquery/
A regexp solution will work MUCH faster, and in general, in terms of skills, the ability to write regular expressions will come in handy.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question