Answer the question
In order to leave comments, you need to log in
How to build a parser application correctly?
Good afternoon, the essence of the application is parsing movie posters. (parsing the same data (thumbnail, movie title, schedule) from different sites).
For each cinema there is a Cinema object, which contains all the information about the cinema and a pair of xpaths for parsing the poster. The problem is that at the moment you need to do without xpath.
If I understand correctly, you need to use something like a listener for each Cinema object, which will parse the html page in its own way. I want to create all Cinema objects in the CinemaManager singleton, which will then be used in activities. The data about cinemas is static, so I think that the parsing is hammered into the code is not a mistake.
Is this the correct approach?
Answer the question
In order to leave comments, you need to log in
"The problem is that at the moment you need to do without xpath." Can you open the veil of secrecy, why is it necessary without xpath, what does not suit them?
Listener - usually hung on an event, where is your event?
Maybe just regular is good for you? keep your regular season for each cinema and you will be happy.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question