Skip to content

Instantly share code, notes, and snippets.

@spookyahell
Created August 24, 2018 11:08
Show Gist options
  • Save spookyahell/ed3957e696339564b1bc7f774a97c409 to your computer and use it in GitHub Desktop.
Save spookyahell/ed3957e696339564b1bc7f774a97c409 to your computer and use it in GitHub Desktop.
How to search for an apartment (assuming you're a dev)
from apartmentSearchProvider import searchExposes
from internetprovider import CheckIfInetProviderOffersBestInternet
closer_cosideration = []
exposes = searchExposes(desiredRegion)
for expose in exposes:
address = expose.address
bestinet = CheckIfInetProviderOffersBestInternet(address)
if bestinet is True:
closer_consideration.append(expose)
else:
continue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment