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 4923d80 commit a504fd9Copy full SHA for a504fd9
requirements.txt
@@ -0,0 +1,6 @@
1
+appdirs==1.4.3
2
+packaging==16.8
3
+pyparsing==2.2.0
4
+requests==2.13.0
5
+six==1.10.0
6
+xmltodict==0.10.2
zillow.py
@@ -0,0 +1,21 @@
+import requests
+import xmltodict
+import os
+
+class Zillow(object):
7
+ """A python wrapper for the Zillow Home API"""
8
+ def __init__(self, arg):
9
+ self.ZWSID = os.environ['ZWSID']
10
+ self.base = "https://www.zillow.com/webservice/"
11
12
+ def GetSearchResults(self, address, citystatezip):
13
14
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)
0 commit comments