mirror of
https://github.com/Hestia-Homes/survey-extraction.git
synced 2026-06-08 11:17:29 +00:00
updated first time script
This commit is contained in:
parent
fd1c2c2534
commit
10e2ddb694
3 changed files with 12 additions and 7 deletions
|
|
@ -14,6 +14,7 @@ class Companies(Enum):
|
|||
ABRI = "237615001799"
|
||||
SOUTHERN_HOUSING_GROUP = "109343619305"
|
||||
LIVEWEST = "86205872354"
|
||||
SURESERVE = "301745289413"
|
||||
|
||||
class DealStage(Enum):
|
||||
SURVEYED_COMPLETE_NEEDS_SIGN_OFF = "1617223914"
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ companies = [
|
|||
Companies.ABRI,
|
||||
Companies.LIVEWEST,
|
||||
Companies.SOUTHERN_HOUSING_GROUP,
|
||||
Companies.SURESERVE
|
||||
]
|
||||
|
||||
# Track all failures and summary data
|
||||
|
|
|
|||
|
|
@ -4,12 +4,15 @@ from etl.db.hubSpotLoad import HubspotTodb
|
|||
|
||||
hubspot = HubSpotClient()
|
||||
|
||||
companies = [
|
||||
Companies.ABRI,
|
||||
Companies.LIVEWEST,
|
||||
Companies.SOUTHERN_HOUSING_GROUP,
|
||||
Companies.SURESERVE,
|
||||
]
|
||||
# All deals from a pipeline_id via filter
|
||||
company = hubspot.get_company_information(Companies.SOUTHERN_HOUSING_GROUP.value)
|
||||
|
||||
loader = HubspotTodb()
|
||||
loader.new_record_company(company)
|
||||
|
||||
|
||||
# make a scrip that updates table, with khalim scoping
|
||||
|
||||
for comapny in companies:
|
||||
new_company_info = hubspot.get_company_information(company.value)
|
||||
loader = HubspotTodb()
|
||||
loader.new_record_company(new_company_info)
|
||||
Loading…
Add table
Reference in a new issue