hubspot_to_deem

This commit is contained in:
Jun-te Kim 2025-04-14 10:00:53 +00:00
parent a95d31ee98
commit 6bfab1d585
4 changed files with 15 additions and 4 deletions

View file

@ -20,7 +20,9 @@
"mechatroner.rainbow-csv",
"ms-toolsai.datawrangler",
"lindacong.vscode-book-reader",
"4ops.terraform"
"4ops.terraform",
"fabiospampinato.vscode-todo-plus",
"jgclark.vscode-todo-highlight"
]
}
}

3
etl/hubspot_to_deem.py Normal file
View file

@ -0,0 +1,3 @@
from etl.surveyPrice.surveyPrice import SurveyPrice

View file

@ -27,6 +27,7 @@ class SharePointInstaller(Enum):
BAXTER_KELLY = os.getenv("BAXTER_KELLY_SERVICE_SHAREPOINT_ID", "6f930bf3-572d-4f91-b1ae-ec536fa319e2")
DOMNA = os.getenv("DOMNA_SHAREPOINT_ID", "8ab64924-ccde-4b56-b0dc-4e11596446e4")
OSMOSIS = os.getenv("OSMOSIS_SHAREPOINT_ID", "350a3b48-8311-4506-8abb-69bafc280d6f")
WARMFRONT = os.getenv("WARMFRONT_SHARPOINT_ID", "bea71c30-d366-454c-a484-ae4d6fd95bc4")
class SharePointScraper():
"""

View file

@ -1,13 +1,16 @@
from etl.scraper.scraper import SharePointScraper, SharePointInstaller
class surveyPrice():
class SurveyPrice():
"""
A class to work out all prices and uploads to sharepoint
A class to work out all prices and uploads to sharepoint for review
"""
def __init__(self):
self.sharepoint_client = SharePointScraper(SharePointInstaller.WARMFRONT)
pass
def download_price_card(self):
self.sharepoint_client.get_folders_in_path("/Documents/Commercials/Rate Cards")
pass
def get_price_card():
@ -17,9 +20,11 @@ class surveyPrice():
# Step one
# TODO
# Make a copy of the rate card and work out each price matrix
# Make the price card downloadable as a single excelt sheet for viewing
# For other things, do some TDD so it is a little robust
# The script can run weekly, for development I can just get one data
# Expected input, expect output etc