Skip to content

Commit 9d78fc7

Browse files
committed
more matching
Signed-off-by: John Seekins <[email protected]>
1 parent 4cb85a3 commit 9d78fc7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

scraper.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ def _clean_street(self, street: str, locality: str = "") -> Tuple[str, bool]:
9191
{"match": "12450 Merritt Road", "replace": "12450 MERRITT DR", "locality": "Chardon"},
9292
{"match": "411 S. Broadway Avenue", "replace": "411 SOUTH BROADWAY AVENUE", "locality": "Albert Lea"},
9393
{"match": "3424 Hwy 252 E", "replace": "3424 HIGHWAY 252 EAST", "locality": "Folkston"},
94+
{"match": "3250 N. Pinal Parkway", "replace": "3250 NORTH PINAL PARKWAY", "locality": "Florence"},
95+
{"match": "351 Elliott Street", "replace": "351 ELLIOTT ST", "locality": "Honolulu"},
96+
{"match": "1 Success Loop Rd", "replace": "1 SUCCESS LOOP DR", "locality": "Berlin"},
97+
{"match": "700 Arch Street", "replace": "700 ARCH ST", "locality": "Philadelphia"},
9498
# a unique one, 'cause the PHONE NUMBER IS IN THE ADDRESS?!
9599
{"match": "911 PARR BLVD 775 328 3308", "replace": "911 E Parr Blvd", "locality": "RENO"},
96100
# default matches should come last
@@ -127,8 +131,13 @@ def _repair_zip(self, zip_code: int, locality: str) -> Tuple[str, bool]:
127131
cleaned = True
128132
if zcode == "98421-1615" and locality == "Tacoma":
129133
zcode = "98421"
134+
cleaned = True
130135
if zcode == "89048" and locality == "Pahrump":
131136
zcode = "89060"
137+
cleaned = True
138+
if zcode == "85132" and locality == "Florence":
139+
zcode = "85232"
140+
cleaned = True
132141
return zcode, cleaned
133142

134143
def _repair_locality(self, locality: str, administrative_area: str) -> Tuple[str, bool]:

0 commit comments

Comments
 (0)