From mboxrd@z Thu Jan 1 00:00:00 1970 From: Felix Geller Subject: Re: Python script to download Google Calendar events Date: Fri, 29 Jul 2011 23:23:17 +0200 Message-ID: References: <87r55i4gjt.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:58625) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QmuWr-0002Wj-7x for emacs-orgmode@gnu.org; Fri, 29 Jul 2011 17:23:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QmuWp-0001xr-TB for emacs-orgmode@gnu.org; Fri, 29 Jul 2011 17:23:33 -0400 Received: from mail-fx0-f41.google.com ([209.85.161.41]:53156) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QmuWp-0001xl-O1 for emacs-orgmode@gnu.org; Fri, 29 Jul 2011 17:23:31 -0400 Received: by fxg9 with SMTP id 9so3329969fxg.0 for ; Fri, 29 Jul 2011 14:23:30 -0700 (PDT) In-Reply-To: <87r55i4gjt.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rasmus , emacs-orgmode@gnu.org --=-=-= Content-Transfer-Encoding: quoted-printable Hi Rasmus and list :) Small updates: 1. Integration of Rasmus' idea to support different calendars (thanks!) 2. Support for publishing a new title of an event.=20 The second one is a very limited form of sync'ing changes back to Google Calendar, but suits my needs [2]. I updated the documentation to include examples. Take a look if you're interested: http://goo.gl/rZU78 Cheers, Felix On Fri, 22 Jul 2011 14:59:34 +0200, Rasmus wrote: >=20 > Hi Felix,=20 >=20 > Felix Geller writes: >=20 > > I wrote a Python script that [1] uses the GData API to download events > > for your Google Calendar and prints them to a given org-file. It is a > > very tiny script, but perhaps it is of use to other people as well. >=20 > Now I've had some time to play around with your script and it is very > nice and fast. I tingled a bit with it. >=20 > I (think) I have added support for other calendars using the > https://.*/private/full urls. I've also added a category. >=20 > Thus, one can specify gcal2org.py name@gpost.com file uri=20 >=20 > and if uri is left out it will work as your script.=20 >=20 > I have hosted the alternative script here: >=20 > http://andromeda.kiwilight.com/~pank/gcal2org.txt (no .py allowed) > http://andromeda.kiwilight.com/~pank/gcal2org.diff >=20 > The thing is, I don't know where you find these private/full urls in the > web-interface. I found them via Gdata. Optimally, it should just use > one of the urls from the web-interface. >=20 > Cheers, > Rasmus >=20 > --=20 > Sent from my Emacs >=20 > Footnotes: [2] I add a hook to toggling the TODO state of an entry, and invoke the script to update the event title if applicable. There's an example in the script. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org iEYEARECAAYFAk4zJMYACgkQMxgKfMb9y5YI5QCg89P3Xg7WRgJqDJtQGori155l rS0AoNg8ltFG3J8TY9yXujLnfNlUsZYw =bpZ+ -----END PGP SIGNATURE----- --=-=-=--