config.py 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. import time
  2. import os
  3. MYHOME_API_KEY = '5f4bc74f-8d9a-41cb-ab85-a1b7cfc86622'
  4. BASE = 'https://api.myhome.ie'
  5. GCLOUD_API_KEY = os.getenv('IEP_GCLOUD_KEY')
  6. DB_PATH = 'data.db'
  7. MONITORED_LOCALITIES = [
  8. 1265, # Co Dublin
  9. 4011, # Co Wicklow
  10. # 3587, # Co Tipp
  11. 2362, # Co Kildare
  12. 2535, # Co Louth
  13. 2712, # Co Meath
  14. ]
  15. MONITORED_BBOXES = [
  16. ((53, -6.9), (53.85, -5.9)), # Overall
  17. ((53.358687,-6.219396), (53.371389,-6.168778)), # Clontarf
  18. ((53.355553,-6.108301), (53.397744,-6.031430)), # Howth
  19. ((53.459195,-6.173369), (53.588187,-6.060123)), # NE
  20. ((53.450280,-6.190388), (53.456924,-6.158301)), # Malahide estuary
  21. ((53.265768,-6.127407), (53.290505,-6.081422)), # Dalkey, Killiney
  22. ]
  23. WORKPLACE = (53.353361,-6.247984)
  24. WORKPLACE_TARGET_TIME = 1540893600 # tue 10:00
  25. while WORKPLACE_TARGET_TIME < time.time():
  26. WORKPLACE_TARGET_TIME += 7*24*3600
  27. MIN_PRICE = 150000
  28. MAX_PRICE = 1500000
  29. SEARCH_PARAMS = {
  30. 'ChannelIds': [1],
  31. # 'Destinations': [],
  32. # 'EnergyRatings': [],
  33. 'GroupIds': [],
  34. # 'IsAuction': "",
  35. # 'IsSaleAgreed': "",
  36. # 'IsSold': False,
  37. 'LocalityIds': [],
  38. # 'MaxBeds': "",
  39. # 'MaxEnergyRating': "",
  40. 'MaxPrice': str(MAX_PRICE),
  41. 'MaxSize': "",
  42. # 'MinBathrooms': "1",
  43. # 'MinBeds': "2",
  44. 'MinEnergyRating': "",
  45. 'MinPrice': str(MIN_PRICE),
  46. 'MinSize': "",
  47. 'NegotiatorIds': [],
  48. 'PreSixtyThree': False,
  49. 'PropertyClassId': "",
  50. 'PropertyClassIds': [1],
  51. 'PropertyIds': [],
  52. 'PropertyStatusIds': [2, 12],
  53. 'PropertyTypeIds': [],
  54. 'Query': "",
  55. 'RegionGroup': 2168,
  56. 'RegionId': None, # to be set to a locality id
  57. 'SaleTypeIds': [],
  58. 'SearchContent': False,
  59. 'SortBy': "Most Recent",
  60. 'UseFreeTextSearchForKeywords': False,
  61. }