This test consist of 3 cases :
- case 1 - daily occupancy
- case 2 - conversion leads
- case 3 - scraping data - mamikost (Optional)
Note : Image just prove insert data to datawarehouse is already success (amount maybe can change / because tweaking or improvement) before 17 Apr 2023 00:01
- Please setup
virtual-environments
python3 -m venv env
- To activation the
virtual-enviroments
source env/bin/activate
- After
virtual-enviroments
has been activate, than install the librarypip install -r requirements.txt
- Copy
.env.example
to.env
or rename become.env
GBQ_PROJECT = "" GBQ_DATASET = "" GBQ_LOCATION = ""
- Don't forget about
key.json
, to generatekey.json
we need go tohttps://console.cloud.google.com/
>>IAM & Admin >> Service Accounts
>>Keys
>>Add Key
>> Pop Up Apper and chooseJSON
- To run case, please un-comments code
before
after
# case_1() # case_2()
case_1() #case_2()