Skip to content

Commit 10c66ea

Browse files
committed
fixing base
1 parent d913d61 commit 10c66ea

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
# zillow-python
2-
A python wrapper for zillow
2+
A python wrapper for Zillow
3+
4+
5+
## GetSearchResults
6+
7+
8+
## GetZestimate

zillow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55

66
class Zillow(object):
77
"""A python wrapper for the Zillow Home API"""
8-
def __init__(self, arg):
8+
def __init__(self):
99
self.ZWSID = os.environ['ZWSID']
1010
self.base = "https://www.zillow.com/webservice/"
1111

1212
def GetSearchResults(self, address, citystatezip):
1313

1414
data = {'zws-id' : self.ZWSID,'address' : address,'citystatezip': citystatezip}
1515

16-
response = requests.get(base + "GetSearchResults.htm",params=data)
16+
response = requests.get(self.base + "GetSearchResults.htm",params=data)
1717
if response.status_code == 200:
1818
return xmltodict.parse(response.text)
1919
else:

0 commit comments

Comments
 (0)