Skip to content

Instantly share code, notes, and snippets.

@ijharulislam
Created September 25, 2017 07:17
Show Gist options
  • Save ijharulislam/740ca55b6585f81d42cc22e1b2e3ccaa to your computer and use it in GitHub Desktop.
Save ijharulislam/740ca55b6585f81d42cc22e1b2e3ccaa to your computer and use it in GitHub Desktop.
try:
est = su.find_all("div", class_="zestimate-value")
for es in est:
es_text = es.text
if "/mo" in es_text:
output["Rent Zestimate"] = es_text.replace("$","")
print(" RENT EST:", es_text.strip())
else:
output["Zestimate"] = es_text.replace("$","")
print("ZEST EST:", es_text)
except Exception as e:
print("Zest Error", e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment