We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a504fd9 commit 9646f1dCopy full SHA for 9646f1d
zillow.py
@@ -10,12 +10,11 @@ def __init__(self, arg):
10
self.base = "https://www.zillow.com/webservice/"
11
12
def GetSearchResults(self, address, citystatezip):
13
-
14
+ data = {'zws-id' : self.ZWSID,'address' : address,'citystatezip': citystatezip}
15
16
17
-data = {'zws-id' : ZWSID,'address' : "3276 Spyglass Drive",'citystatezip':"98226"}
18
19
-response = requests.get(base + "GetSearchResults.htm",params=data)
20
21
-house = xmltodict.parse(response.text)
+ response = requests.get(base + "GetSearchResults.htm",params=data)
+ if response.status_code == 200:
+ return xmltodict.parse(response.text)
+ else:
+ return response.status_code
0 commit comments