Skip to content

Commit baaf308

Browse files
committed
fix charts
1 parent a320666 commit baaf308

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ Z = zillow.Zillow()
1414

1515
## GetChart
1616
[Params](https://www.zillow.com/howto/api/GetChart.htm)
17+
`Z.GetChart("48749425","dollar",600,300,"10years")`

zillow.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ def GetZestimate(self, zpid):
3232
def GetChart(self,zpid,unit_type, width, height, duration):
3333
data = {'zws-id' : self.ZWSID,
3434
'zpid' : zpid,
35-
'unit_type' : unit_type,
35+
'unit-type' : unit_type,
3636
'width' : width,
3737
'height' : height,
38-
'duration' : duration}
39-
response = requests.get(base + "GetChart.htm",params=data)
38+
'chartDuration' : duration}
39+
response = requests.get(self.base + "GetChart.htm",params=data)
4040

4141
if response.status_code == 200:
4242
return xmltodict.parse(response.text)

0 commit comments

Comments
 (0)