Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Users

Alternative MythMovies grabber (using Google so works in UK)

 

 

MythTV users RSS feed   Index | Next | Previous | View Threaded


abostock at gmail

Feb 16, 2008, 11:23 AM

Post #1 of 3 (3129 views)
Permalink
Alternative MythMovies grabber (using Google so works in UK)

I've written a MythMovies grabber that uses Google's movie showtimes site (
www.google.com/movies/).

It's written in Perl and takes one argument which is the postcode/zipcode.
Once you've put the attached script on your machine and made it executable,
just change the grabber setting for MythMovies to
<path to script>/googlemovies.pl %z

Also set the Zip Code to your postcode/zipcode without spaces.

Both UK postcodes and US zipcodes work, maybe other countries work as well,
I really don't know what Google supports.

Ash
Attachments: googlemovies.pl (2.21 KB)


philledwards at gmail

Jun 6, 2008, 2:38 PM

Post #2 of 3 (2631 views)
Permalink
Re: Alternative MythMovies grabber (using Google so works in UK) [In reply to]

> I've written a MythMovies grabber that uses Google's movie showtimes site
> (www.google.com/movies/).
>
> It's written in Perl and takes one argument which is the postcode/zipcode.
> Once you've put the attached script on your machine and made it executable,
> just change the grabber setting for MythMovies to
> <path to script>/googlemovies.pl %z
>
> Also set the Zip Code to your postcode/zipcode without spaces.
>
> Both UK postcodes and US zipcodes work, maybe other countries work as well,
> I really don't know what Google supports.

I've been trying to get this to work on my machine. I can run the
script from the command line and I've hardcoded in the postcode. I get
some XML output which seems to contain movie names but no show times:

<Movie>
<Name>Indiana Jones and the Kingdom of the Crystal Skull</Name>
<Rating>12A</Rating>
<RunningTime></RunningTime>
<ShowTimes></ShowTimes>
</Movie>

When I run it from MythTV Movie Times plugin I don't get any data
showing at all and I think this might be because the data returned is
incomplete (no show times). I'd like to see how you're running it,
with what postcode etc so I can at least get something working and
then build up from there.

I'm in Australia which uses the same googlemovies url, but I've been
trying it with UK (SY5 OAN) and US (90210) postcodes as you said you
know it works with UK& US postcodes but I get the same result.

Regards,
Phill
_______________________________________________
mythtv-users mailing list
mythtv-users[at]mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


mythtv at payne

Jun 7, 2008, 12:06 AM

Post #3 of 3 (2620 views)
Permalink
Re: Alternative MythMovies grabber (using Google so works in UK) [In reply to]

Phill Edwards wrote:
I've written a MythMovies grabber that uses Google's movie showtimes site (http://www.google.com/movies/"]www.google.com/movies/). It's written in Perl and takes one argument which is the postcode/zipcode. Once you've put the attached script on your machine and made it executable, just change the grabber setting for MythMovies to <path to script>/googlemovies.pl %z Also set the Zip Code to your postcode/zipcode without spaces. Both UK postcodes and US zipcodes work, maybe other countries work as well, I really don't know what Google supports.
I've been trying to get this to work on my machine. I can run the script from the command line and I've hardcoded in the postcode. I get some XML output which seems to contain movie names but no show times: <Movie> <Name>Indiana Jones and the Kingdom of the Crystal Skull</Name> <Rating>12A</Rating> <RunningTime></RunningTime> <ShowTimes></ShowTimes> </Movie> When I run it from MythTV Movie Times plugin I don't get any data showing at all and I think this might be because the data returned is incomplete (no show times). I'd like to see how you're running it, with what postcode etc so I can at least get something working and then build up from there. I'm in Australia which uses the same googlemovies url, but I've been trying it with UK (SY5 OAN) and US (90210) postcodes as you said you know it works with UK& US postcodes but I get the same result. Regards, Phill _______________________________________________ mythtv-users mailing list mythtv-users[at]mythtv.org http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users"]http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
I also tried this in Switzerland and I had to modify the regex used to detect the theatre information - there was a a <font> tag that messed up the search so I got no data at all.
Could be that the times have some additional tags/attributes in other countries. Unfortunately Google don't include uniquely identifiable strings (eg Theatre: ) for all the important fields.

John

MythTV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.