Program structure
This commit is contained in:
parent
a88ea53dbc
commit
6c1347f4a8
1 changed files with 11 additions and 0 deletions
11
parser.py
11
parser.py
|
@ -7,6 +7,10 @@ import caldav, icalendar
|
|||
|
||||
|
||||
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_endtag(self, tag):
|
||||
|
@ -14,5 +18,12 @@ class GoogleSheetsParser(HTMLParser):
|
|||
def handle_data(self, data):
|
||||
|
||||
|
||||
# Getting the Google Sheet
|
||||
|
||||
|
||||
# Parsing the Sheet
|
||||
calParser = GoogleSheetsParser()
|
||||
|
||||
# Transforming the cells into events
|
||||
|
||||
# Pushing events to caldav server
|
||||
|
|
Reference in a new issue