-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathzipCode.py
More file actions
52 lines (41 loc) · 1.62 KB
/
zipCode.py
File metadata and controls
52 lines (41 loc) · 1.62 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#Hannah Lawson
#In progress
#10/12/2021
from uszipcode import Zipcode, SearchEngine, SimpleZipcode
from easygui import *
def zipCode():
text = "Enter zipcode"
title = "Zipcode"
d_text = ""
userZip = enterbox(text, title, d_text)
# userZip= input("Enter your zipcode: ")
search = SearchEngine()
zipcode = search.by_zipcode(userZip)
city= zipcode.major_city
#print(city)
#prints out name and phone number
# for local therapist
#only a few places, can add more later
if city== "Daniels" or city== "Beckley":
message=("Laurel Mountain Psychological, Inc \n (304)-894-8930")
elif city== "Princeton" or city=="Athens":
message=("The Gibson Counseling Center \n (304)-487-9996")
elif city== "Martinsburg" or city=="Shepherdstown":
message=("Psychological Consulting Inc \n (304)-263-9095")
elif city== "Bluefield":
message=("Brain Matters Therapy \n (276)-970-9747")
elif city== "Wheeling" or city=="Weirton":
message=("Muir Robin \n (304)-233-1200")
elif city== "Charleston" or city== "Saint Albans":
message=("KPCC Counseling \n (304)-346-9689")
elif city== "Morgantown":
message=("Fremouw-Sigley Psychological \n (304)-598-2300")
elif city== "Tazewell" or city== "Cedar Bluff":
message=("Carilion Clinic \n (276)-988-8765")
elif city== "Bastian" or city== "Pearisburg":
message=("Bland County Medical Clinic \n (276)-688-4331")
else:
message=("Try another close city")
title = "City: ", city
output = msgbox(message, title)
zipCode()