Program structure
This commit is contained in:
parent
a88ea53dbc
commit
6c1347f4a8
11
parser.py
11
parser.py
|
@ -7,6 +7,10 @@ import caldav, icalendar
|
||||||
|
|
||||||
|
|
||||||
class GoogleSheetsParser(HTMLParser):
|
class GoogleSheetsParser(HTMLParser):
|
||||||
|
"""
|
||||||
|
Definition of a Google Sheets parser providing a table with each cell
|
||||||
|
and its position and size
|
||||||
|
"""
|
||||||
def handle_starttag(self, tag, attrs):
|
def handle_starttag(self, tag, attrs):
|
||||||
|
|
||||||
def handle_endtag(self, tag):
|
def handle_endtag(self, tag):
|
||||||
|
@ -14,5 +18,12 @@ class GoogleSheetsParser(HTMLParser):
|
||||||
def handle_data(self, data):
|
def handle_data(self, data):
|
||||||
|
|
||||||
|
|
||||||
|
# Getting the Google Sheet
|
||||||
|
|
||||||
|
|
||||||
|
# Parsing the Sheet
|
||||||
calParser = GoogleSheetsParser()
|
calParser = GoogleSheetsParser()
|
||||||
|
|
||||||
|
# Transforming the cells into events
|
||||||
|
|
||||||
|
# Pushing events to caldav server
|
||||||
|
|
Reference in New Issue