Cinema listings via MythTV
August 31st, 2008 by fnxThe current MythTV has a “movies” section on the information centre that reports cinema times for local cinemas.
The fetcher script that comes with Myth only services the USA, but a couple of people have written ones (both in Perl) that use Google's ‘movie’ facility (http://www.google.com/movies?near=POSTCODE) and so they work (at least) in the UK. There're two that I know of, and have downloaded, and twiddled with a bit to tidy up the output and cope with various bits of information that I've found can be missing.
Neither have an obvious webite to link to, so I'll put my twiddled versions here as well for reference. (NB: both currently link directly to google.co.uk; this tidies up the cinema addresses for those in the UK. Change to your own local google).
The first (mentioned on the MthTV mailing list) is a rather cool bit of DOM parsing but which disappointingly didn't work for me off the bat. It does now, but isn't actually the most flexible of the two.
The second is a straightforward screen scraper that's not as pretty, code wise, but certainbly does the trick. It's the one I use at the moment.
Tags: cinema, mythtv, perl, uk
Advertisement
August 31st, 2008 at 5:50 pm
Would you be interested in exchanging blogrolls links with my site? Please email me if you are interested
September 2nd, 2008 at 11:38 am
great work, thanks very much for putting these up where they can be found. and thanks most importantly to the original writers of the scripts.
you were much more successful than i was searching for uk based cinema listings, i couldn’t find squat
this will certainly impress the SO