GithubHelp home page GithubHelp logo

renyaow / fbeventstogooglecal Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 104 KB

A python application that allows user to interactively import his/her fb events to Google Calendar

Python 64.18% HTML 35.82%

fbeventstogooglecal's Introduction

#fbEventsToGoogleCal

The project is to export user's fb events to google calendar so they won't miss out. 

Three main parts:
1. Get user's fb events using FB Graph API
2. GUI shows the events and user can choose what events to add to google cal
3. Add these events to gcal using Google Calendar API

Instructions to run:
Packages:
Google Calendar Python Client Library: 
     pip install --upgrade google-api-python-client

Before running: make sure you have following four files
1. main.py: the main file to run
2. googleAuth.py: it runs authentication for gcal
3. client_secret.json: for gcal authentication (Not included)
4. fb_info: stores fb token and user id


Before running, user should obtain fb user id and access token. You can run python3 main.py and it gives instructions on how to get those information and how to store them in fb_info file. 

To obtain client_secret.json, go to Google Developer Console and create a new application. Follow this to setup: https://developers.google.com/api-client-library/python/apis/calendar/v3

First time using, google will prompt you to authorize usage by opening a default browser. Click accept so the app can access your calendars. 



Run: python3 main.py


References:
The Google API authtication code is taken from the Google Calendar API example   

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.