Skip to content

Write events to your Google Calendar using GCal API. Takes input event URL, then pareses with BeautifulSoup.

Notifications You must be signed in to change notification settings

fensorechase/BrazilEvents-GoogleCalendar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

BrazilEvents-GoogleCalendar

Python script to write events to your Google Calendar using GCal API. Takes input event URL, then parses with BeautifulSoup.

Installation

First, clone the repository

git clone __insert http or ssh here__

Use the package manager pip to install BrazilEvents.

pip install BrazilEvents

Usage

First in GoogleAPI create a new project, and generate credentials. While generating credentials, be sure to create OAuth2.0 client ID, and store it in client_secret.json file in the same directory as this project. Here, we ensure a user gives consent before giving access to their Google Calendar to read/write. Then continue:

import BrazilEvents
eventScraper.py

Please visit this URL to authorize this application: [paste this URL into a web browser]
Enter the authorization code: [enter your authorization code]
Enter full event URL (n to quit): http://www.calendariodoagronegocio.com.br/Evento/visualizar/portugues/3226
Enter full event URL (n to quit): n

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

About

Write events to your Google Calendar using GCal API. Takes input event URL, then pareses with BeautifulSoup.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages