1

I need to scrape a theatre webpage to know whether the bookings for next week has been opened. I am planning to write a scraper if the page has the required HTML element for the next Friday based on the current date.

For example, if the current date is June 4-9, I should scrape the page https://www.spicinemas.in/chennai/show-times/10-06-2016?seats=2

Basically the date in URL will be the next Friday as it is the releasing date.

For specific movies, I like to store the name and its releasing date in DB so that it will take special cases for them.

Which tool would be optimal and take least time? I need to write this for several Movieplex websites and each one has different mechanism to check if the booking has been opened.

Is PhantomJS suitable for this? Please suggest.

2
  • Does the tool must be written in Java or Python, or are other programming languages fine, too?
    – unor
    Commented Jun 2, 2016 at 13:50
  • Fine if there is any other languages. Other than Java, i have to learn and implement. I don't think language will be the main barrier here in implementation.
    – Babu
    Commented Jun 2, 2016 at 14:43

2 Answers 2

1

If the page is straight html, (not flash or query based), you should be able to do this very quickly and simply by using the python's Requests and Beautiful Soup libraries.

The best bit is that you can rapidly test it out using python or iPython interactivly.

0

In addition to Steve's answer here, you can check out Python's lxml library which is a bare-bones scraping library in Python.

As libraries like Scrapy and Beautiful Soup are written as wrappers over lxml, it is faster than them and most Python-based scrapers.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.