Jump to content

NerdAlert: I've made a widget to update GCal with EDF What's On events. 'Ave a look.


Recommended Posts

During a particularly idle moment I mused on how great the world would be if all the What's On events were automagically added to a calendar. This would solve the particular problem that of what to do of an evening at short notice.

Why trawl through the historical EDF What's On postings looking for the evening in question when you could have a calendar view listing everything that's been posted against the day that it's on?


I decided to take this problem on, and I decided to use THE INTERNET to make it happen.


Here's the issue: some people - despite admin's request to the contrary - don't post the date and time of their event in the title of the post. So this boiled down to two parts:


1) recognise where the date IS in the title of the post, add this event to a google calendar

2) recognise where the date is not part of the title, scan the body of the post for a date and if found append it to the title, and send this to a google calendar


All other posts - ie where there is no date either in the title or body are submitted as is. This may or may not be processed correctly by Google Cal but this is the risk you run if you disobey admin's rules. So nyuh.


So steps were:


1) Created a Yahoo Pipe which loads the EDF What's On RSS feed. Filters out anything starting in Re: since the RSS feed includes thread replies. Used RegEx to include only those items that have a date in them.


Pipe source is here: http://bit.ly/H7Chau


2) Created another pipe to find those without a date in the title. Scanned the body for a date using the same regex. If found, stores the text and appends to title


Pipe source is http://bit.ly/H8OF3P


3) a third pipe joins the RSS feeds from pipes 1) and 2) above, plus all other posts not in 1) and 2), excluding responses


4) Next step was to use the excellent IFTTT.com to process the RSS feed resulting from step 3 above and post new items to GCal when a new item arrives. GCal has some parsing logic baked in to handle stuff like "every tuesday", "next thursday", "every day this month" etc, which is why completely dateless items are submitted as is.


E Voila. Here's the result:


http://bit.ly/GQEdzO


Since GCal is syndicated, could also use IFTTT.com to send items to a twitter feed which I think @TweetsDulwich is doing, but straight from the What's on page rather than via GCal.


...but that would be a bit too nerdy...

blimey. that's marvellous, I've never seen yahoo pipes before.

I'd only add that adding a 'unique' widgetty thing based upon title & description might be good as I can see quite a few repeated entries there.


Other than that very minor quibble, hat's off to you 5imon!!

yes there are a few things to improve..work in progress etc


duplicate entries: sometimes there'll be multiple postings for the same event eg reminders as the event draws near. I had a stab at filtering them out, but the search and match critera were pretty difficult to nail down.


the dateless calendar is sometimes a bit heavy handed in it's appending text too...need to tighten that up a bit


..but yes, Yahoo Pipes is awesome - one of the true hidden web wonders. Effectively turns the internet into a database which totally floats my nerdboat. I'll be very upset if Yahoo stop development of it, cos it looks like they are on the decline.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Latest Discussions

    • I've never got Christmas pudding. The only times I've managed to make it vaguely acceptable to people is thus: Buy a really tiny one when it's remaindered in Tesco's. They confound carbon dating, so the yellow labelled stuff at 75% off on Boxing Day will keep you going for years. Chop it up and soak it in Stones Ginger Wine and left over Scotch. Mix it in with a decent vanilla ice cream. It's like a festive Rum 'n' Raisin. Or: Stick a couple in a demijohn of Aldi vodka and serve it to guests, accompanied by 'The Party's Over' by Johnny Mathis when people simply won't leave your flat.
    • Not miserable at all! I feel the same and also want to complain to the council but not sure who or where best to aim it at? I have flagged it with our local MP and one Southwark councillor previously but only verbally when discussing other things and didn’t get anywhere other than them agreeing it was very frustrating etc. but would love to do something on paper. I think they’ve been pretty much every night for the last couple of weeks and my cat is hating it! As am I !
    • That is also a Young's pub, like The Cherry Tree. However fantastic the menu looks, you might want to ask exactly who will cook the food on the day, and how. Also, if  there is Christmas pudding on the menu, you might want to ask how that will be cooked, and whether it will look and/or taste anything like the Christmas puddings you have had in the past.
    • This reminds me of a situation a few years ago when a mate's Dad was coming down and fancied Franklin's for Christmas Day. He'd been there once, in September, and loved it. Obviously, they're far too tuned in to do it, so having looked around, £100 per head was pretty standard for fairly average pubs around here. That is ridiculous. I'd go with Penguin's idea; one of the best Christmas Day lunches I've ever had was at the Lahore Kebab House in Whitechapel. And it was BYO. After a couple of Guinness outside Franklin's, we decided £100 for four people was the absolute maximum, but it had to be done in the style of Franklin's and sourced within walking distance of The Gowlett. All the supermarkets knock themselves out on veg as a loss leader - particularly anything festive - and the Afghani lads on Rye Lane are brilliant for more esoteric stuff and spices, so it really doesn't need to be pricey. Here's what we came up with. It was considerably less than £100 for four. Bread & Butter (Lidl & Lurpak on offer at Iceland) Mersea Oysters (Sopers) Parsnip & Potato Soup ( I think they were both less than 20 pence a kilo at Morrisons) Smoked mackerel, Jerseys, watercress & radish (Sopers) Rolled turkey breast joint (£7.95 from Iceland) Roast Duck (two for £12 at Lidl) Mash  Carrots, star anise, butter emulsion. Stir-fried Brussels, bacon, chestnuts and Worcestershire sauce.(Lidl) Clementine and limoncello granita (all from Lidl) Stollen (Lidl) Stichelton, Cornish Cruncher, Stinking Bishop. (Marks & Sparks) There was a couple of lessons to learn: Don't freeze mash. It breaks down the cellular structure and ends up more like a French pomme purée. I renamed it 'Pomme Mikael Silvestre' after my favourite French centre-half cum left back and got away with it, but if you're not amongst football fans you may not be so lucky. Tasted great, looked like shit. Don't take the clementine granita out of the freezer too early, particularly if you've overdone it on the limoncello. It melts quickly and someone will suggest snorting it. The sugar really sticks your nostrils together on Boxing Day. Speaking of 'lost' Christmases past, John Lewis have hijacked Alison Limerick's 'Where Love Lives' for their new advert. Bastards. But not a bad ad.   Beansprout, I have a massive steel pot I bought from a Nigerian place on Choumert Road many years ago. It could do with a work out. I'm quite prepared to make a huge, spicy parsnip soup for anyone who fancies it and a few carols.  
Home
Events
Sign In

Sign In



Or sign in with one of these services

Search
×
    Search In
×
×
  • Create New...