Skip to content

Commit ce17211

Browse files
committed
GetComps initial
1 parent baaf308 commit ce17211

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

zillow.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,12 @@ def GetChart(self,zpid,unit_type, width, height, duration):
4242
return xmltodict.parse(response.text)
4343
else:
4444
return response.status_code
45+
46+
def GetComps(self, zpid, count):
47+
data = {'zws-id' : self.ZWSID, 'zpid' : zpid, 'count': count}
48+
response = requests.get(self.base + "GetComps.htm",params=data)
49+
50+
if response.status_code == 200:
51+
return xmltodict.parse(response.text)
52+
else:
53+
return response.status_code

0 commit comments

Comments
 (0)