You are hereVancouver Park Board Swimming Lessons Screen Scraper

Vancouver Park Board Swimming Lessons Screen Scraper

By David Grant - Posted on 11 November 2009

I was waiting for the January 2010 swimming times to appear on the Vancouver Park Board website but I got tired of all the clicking and scrolling required to see when the lessons were available. The other problem was that once the lessons appeared for one pool, some of the other pools still hadn't posted their lesson schedule for January 2010. The times that came out for the first pool were not ideal so I wanted to wait and see what came out for the other pool, while making sure that the first pool didn't book up. I wrote a script that would allow me to see what lessons were available at 2 different pools on Sunday and to see how many spots were left in each lesson. Here's some sample output:

david@centurion:~/svn/scripts$ ./ 
PT 1/2 Starfish/Duck Sat Set 1 WP - Pool Open Jan 09, 2010 11:00am 10 / 10
PT 1/2 Starfish/Duck Sat Set 1 WP - Pool Open Jan 09, 2010 12:00pm 10 / 10
PT 1/2 Starfish/Duck Sun Set 1 WP - Pool Open Jan 10, 2010 12:30pm 10 / 10
PT 1 Starfish (4-12mo) Sat 1Win1 VA - Vancouver Aquatic Centre Open Jan 09, 2010  9:00am 1 / 12

As you can see, at the "WP - Pool" pool (actually Lord Byng, the pool I was waiting on) there were just recently 3 lesson times added. At the "VA - Vancouver Aquatic Centre" pool there is only 1 spot left in one time. There are two other times but there are not shown as I have enabled filtering on only lessons that have spots left and which are on Sunday.


Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote> <s> <img> <h2> <h3>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. The supported tag styles are: <foo>, [foo].

More information about formatting options

This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Enter the characters shown in the image.
By submitting this form, you accept the Mollom privacy policy.