Tuesday, March 24, 2009

It's time to add baseball schedules to Google Calendar!

It's not very flashy, but I created a Google Calendar for each MLB team's 2009 schedule:

http://mlb.bolinfest.com/

Each calendar will be updated automatically – I have a script that runs twice an hour while baseball games are on (it gets a break from 3am-noon eastern time) to scrape the latest data and update all of the calendars. Unfortunately, I don't think the calendars will be re-indexed that quickly by Google Calendar, but it's better than nothing.

I actually wrote Chickenfoot code two years ago to scrape data from mlb.com for use with CalMap and wikicalendars.com. Unfortunately, I never quite got Chickenfoot working with cron (which meant I manually ran the Chickenfoot script every morning to update the calendars), so this year I actually decided to run my original JavaScript code using Rhino since it's easy to kick off a Java process using cron. It sounds a little crazy, but it works great!

24 comments:

  1. Hi,

    I've been trying to embed a mini Google Calendar on my website. I have come across a widget that you have made http://gmodules.com/ig/creator?synd=open&url=http://www.google.com/ig/modules/calendar-for-your-site.xml

    I love it, except for that the event time in the pop up window is displayed in a wrong time zone (I think it's GMT 00:00) for non-Google users. Is there anything that I'm not doing correctly?

    I'm sorry to communicate to you by posting a comment on you blog, but I could not find your email address anywhere on this blog. I would really appreciate it if you could give me some advice as to how to fix the time zone problem.

    Regards,

    Sumi

    ReplyDelete
  2. First - thanks! I wish I had discovered your Google calendar MLB schedules before the season started. Are you planning to do these again for 2010?

    - Is your script still running? If so, what gets updated? ... the game scores?

    ReplyDelete
  3. Guess I wasn't observant enough about the game score updates. Great job. And, thanks again.

    ReplyDelete
  4. Suppose, you are out spilled by a progressively dexterous adversary in soccer. softball pins

    ReplyDelete
  5. I just want to let you know that I just check out your site and I find it very interesting and informative.. UFABET

    ReplyDelete
  6. I am very enjoyed for this blog. Its an informative topic. It help me very much to solve some problems. Its opportunity are so fantastic and working style so speedy. 토토사이트

    ReplyDelete
  7. This was a really great contest and hopefully I can attend the next one. It was alot of fun and I really enjoyed myself.. ที่นักพนันออนไลน์แนะนำ

    ReplyDelete
  8. This is my first time visit here. From the tons of comments on your articles,I guess I am not only one having all the enjoyment right here! ทางเข้าUFABET

    ReplyDelete
  9. I learn some new stuff from it too, thanks for sharing your information. แทงบอลออนไลน์

    ReplyDelete
  10. This is just the information I am finding everywhere. Thanks for your blog, I just subscribe your blog. This is a nice blog.. UFABET

    ReplyDelete
  11. I have bookmarked your blog, the articles are way better than other similar blogs.. thanks for a great blog! SR9009 powder

    ReplyDelete
  12. It proved to be Very helpful to me and I am sure to all the commentators here! SR9009 powder

    ReplyDelete
  13. This is very nice one and gives indepth information. My site : UFABET

    ReplyDelete
  14. thank you for sharing your knowledge and experience with me vegus168 vegus168

    ReplyDelete
  15. Thanks for sharing your superb internet site. ufabet ufabet

    ReplyDelete
  16. Best Assignment Help Online has been a frequent provider of online services in the US and other countries for more than five years. Buy assignments in UK

    ReplyDelete
  17. online assignment help granted as a common advanced and approved Tutor Service also All Homework Help organization which allows safe - secret and deliver services, we always try to our best to keep supporting us and order now. online assignment help

    ReplyDelete
  18. Online sociology essay writing services have come up with Sociology Assignment Writing Services for sociology coursework writing service students in order for them to score straight A’s in their custom sociology research paper services.

    ReplyDelete