Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trouble Parsing Author XML #3

Open
pawl opened this issue Mar 1, 2014 · 4 comments
Open

Trouble Parsing Author XML #3

pawl opened this issue Mar 1, 2014 · 4 comments

Comments

@pawl
Copy link

pawl commented Mar 1, 2014

I'm trying to get your library working on this xml feed: http://www.google.com/calendar/feeds/dallasmakerspace.org_6ipmavoef85vn59hlsbhgei4ok%40group.calendar.google.com/public/basic

Traceback (most recent call last):
  File "calendar_test.py", line 7, in <module>
    for event in cal.parse_calendar():
  File "/home/paul/talking-bots/Python-GoogleCalendarParser/calendar_parser.py", line 245, in parse_xml
    self.author = metadata[1].contents[6].next.next.next
IndexError: list index out of range

Maybe this library should be using xpath to navigate through the xml instead?

@bfontaine
Copy link

Similar issue with this feed: https://www.google.com/calendar/feeds/scsequtd48ntpojbloff8782ps%40group.calendar.google.com/public/basic

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "calendar_parser.py", line 250, in parse_xml
    metadata[1].contents[6].contents[5].next.next.contents[1].next)
IndexError: list index out of range

@alborzs
Copy link

alborzs commented Jul 26, 2014

Is there any workaround for this?

@bfontaine
Copy link

For a project with a Google Calendar feed, I used ElementTree and parsed the feed by hand.

@alborzs
Copy link

alborzs commented Jul 27, 2014

I moved on to Google calendar v3 API. Overkill for what I am doing but works anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants