import time import os MYHOME_API_KEY = '5f4bc74f-8d9a-41cb-ab85-a1b7cfc86622' BASE = 'https://api.myhome.ie' GCLOUD_API_KEY = os.getenv('IEP_GCLOUD_KEY') DB_PATH = 'data.db' MONITORED_LOCALITIES = [ 1265, # Co Dublin 4011, # Co Wicklow 3587, # Co Tipp 2362, # Co Kildare 2535, # Co Louth 2712, # Co Meath ] WORKPLACE = (53.353361,-6.247984) WORKPLACE_TARGET_TIME = 1540893600 # tue 10:00 while WORKPLACE_TARGET_TIME < time.time(): WORKPLACE_TARGET_TIME += 7*24*3600 SEARCH_PARAMS = { 'ChannelIds': [1], 'Destinations': [], 'EnergyRatings': [], 'GroupIds': [], 'IsAuction': "", 'IsSaleAgreed': "", 'IsSold': False, 'LocalityIds': [], 'MaxBeds': "", 'MaxEnergyRating': "", 'MaxPrice': "600000", 'MaxSize': "", 'MinBathrooms': "1", 'MinBeds': "2", 'MinEnergyRating': "", 'MinPrice': "100000", 'MinSize': "", 'NegotiatorIds': [], 'PreSixtyThree': False, 'PropertyClassId': "", 'PropertyClassIds': [1], 'PropertyIds': [], 'PropertyStatusIds': [2, 12], 'PropertyTypeIds': [], 'Query': "", 'RegionGroup': 2168, 'RegionId': None, # to be set to a locality id 'SaleTypeIds': [], 'SearchContent': False, 'SortBy': "Most Recent", 'UseFreeTextSearchForKeywords': False, }