-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
30 lines (23 loc) · 916 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
from facade import Facade
if __name__ == '__main__':
while True:
website_selection = input('Please make a website to search: '
'\npress 1 to search realtor.com '
'\npress 2 to search trulia.com '
'\npress 3 to search homes.com'
'\nor press enter to quit.\n'
'\nEnter your selection: ')
if website_selection == '':
exit(0)
facade = Facade()
if website_selection == '1':
facade.run_realtor_scraper()
break
elif website_selection == '2':
facade.run_trulia_scraper()
break
elif website_selection == '3':
facade.run_homes_scraper()
break
else:
print("Invalid input. Please Try again \n")