Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Added scraper that gets google calendar events from mk public calendar #284

Merged
merged 5 commits into from Jan 7, 2015

Conversation

OriHoch
Copy link

@OriHoch OriHoch commented Nov 24, 2014

The events are stored in mks.models.Event model

mks.models.Member gets 2 new fields:
calendar_url - where admins should add the google calendar url
calendar_sync_token - used to get only updated events each time

To get the calendar_url - you need to ask the MK to go to:
calendar settings > calendar address > HTML

You need to add a google token api key for it to work -
go to the google admin console (https://console.developers.google.com/)
create a new project > APIS > enable calendar api > credentials > public API access > create new key > server key > (leave IP restriction empty) > get the key
set the key in local_settings GOOGLE_CALENDAR_API_KEY

Need to setup a cron-job for the scraper:
./manage.py okscrape mks MksEventsScraper --dblog

@daonb
Copy link
Member

daonb commented Dec 15, 2014

We need to move Event to Person.Working on it.

@daonb
Copy link
Member

daonb commented Dec 16, 2014

I've just published my improvments - daonb@3087281

OriHoch and others added 2 commits December 22, 2014 20:56
Stop the url and last sync token in the persons.Person model so it'll be
open to more users and store the events in events.Event.
@OriHoch
Copy link
Author

OriHoch commented Dec 22, 2014

@daonb - thanks, I'm testing it

@OriHoch OriHoch force-pushed the mks-events-google-calendar-scraping branch from 4e69b51 to f689bbe Compare December 22, 2014 19:58
@OriHoch
Copy link
Author

OriHoch commented Dec 22, 2014

made some fixes - PR is ready for merge

@daonb daonb merged commit f689bbe into hasadna:master Jan 7, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants