Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP Error on example in docs #68

Open
MorganWeiss opened this issue Mar 11, 2021 · 9 comments
Open

HTTP Error on example in docs #68

MorganWeiss opened this issue Mar 11, 2021 · 9 comments

Comments

@MorganWeiss
Copy link

I tried running the following code

from pyzillow.pyzillow import ZillowWrapper, GetDeepSearchResults
zillow_data = ZillowWrapper(ZWSID)
deep_search_response = zillow_data.get_deep_search_results('2114 Bigelow Ave','98109',True)
result = GetDeepSearchResults(deep_search_response)
result

I get this error message

HTTPError                                 Traceback (most recent call last)
~/anaconda3/lib/python3.7/site-packages/pyzillow/pyzillow.py in get_data(self, url, params)
    121         try:
--> 122             request.raise_for_status()
    123         except requests.exceptions.HTTPError:

~/anaconda3/lib/python3.7/site-packages/requests/models.py in raise_for_status(self)
    940         if http_error_msg:
--> 941             raise HTTPError(http_error_msg, response=self)
    942 

HTTPError: 410 Client Error: Gone for url: http://www.zillow.com/webservice/GetDeepSearchResults.htm?address=2114+Bigelow+Ave&citystatezip=98109&rentzestimate=true&zws-id=my_api_key
During handling of the above exception, another exception occurred:

ZillowFail                                Traceback (most recent call last)
<ipython-input-3-2a260800eda7> in <module>
      1 from pyzillow.pyzillow import ZillowWrapper, GetDeepSearchResults
      2 zillow_data = ZillowWrapper(ZWSID)
----> 3 deep_search_response = zillow_data.get_deep_search_results('2114 Bigelow Ave','98109',True)
      4 result = GetDeepSearchResults(deep_search_response)
      5 result

~/anaconda3/lib/python3.7/site-packages/pyzillow/pyzillow.py in get_deep_search_results(self, address, zipcode, rentzestimate)
     75             "zws-id": self.api_key,
     76         }
---> 77         return self.get_data(url, params)
     78 
     79     def get_updated_property_details(self, zpid: str):

~/anaconda3/lib/python3.7/site-packages/pyzillow/pyzillow.py in get_data(self, url, params)
    122             request.raise_for_status()
    123         except requests.exceptions.HTTPError:
--> 124             raise ZillowFail
    125 
    126         try:

ZillowFail: 
@clkwrkunvrs
Copy link

I 2nd this

@clkwrkunvrs
Copy link

clkwrkunvrs commented Mar 21, 2021

@MorganWeiss Looks like zillow passed their API on to Bridge interactive and this has codebase has not been updated to reflect that. https://bridgedataoutput.com/docs/explorer/mls-data#listZestimates

https://estated.com/blog/what-happened-to-zillows-api

@alexmlopez
Copy link

@MorganWeiss I've been testing it, and works just fine.
from pyzillow.pyzillow import ZillowWrapper, GetDeepSearchResults
...: zillow_data = ZillowWrapper('my_id' )
...: deep_search_response = zillow_data.get_deep_search_results('2114 Bigelow Ave','98109',True)
...: result = GetDeepSearchResults(deep_search_response)

In [20]: print(result.zillow_id)
48749425

In [21]: print(result.map_this_home_link)
http://www.zillow.com/homes/48749425_zpid/

@samshipengs
Copy link

any update on this? also got the ZillowFail error

@espressobeanies
Copy link

espressobeanies commented Dec 20, 2021

Same error here. Both API types aren't working: GetDeepSearchResults, GetUpdatedPropertyDetails

My output:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/pyzillow/pyzillow.py", line 122, in get_data
    request.raise_for_status()
  File "/usr/lib/python3/dist-packages/requests/models.py", line 943, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 410 Client Error: Gone for url: http://www.zillow.com/webservice/GetDeepSearchResults.htm?address=<sanitized>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/dave/Documents/scripts/realtor_apis/./zillow_test.py", line 5, in <module>
    result = GetDeepSearchResults(zillow_data.get_deep_search_results('<example property street address>', '<example zipcode>', False))
  File "/usr/local/lib/python3.9/dist-packages/pyzillow/pyzillow.py", line 77, in get_deep_search_results
    return self.get_data(url, params)
  File "/usr/local/lib/python3.9/dist-packages/pyzillow/pyzillow.py", line 124, in get_data
    raise ZillowFail
pyzillow.pyzillowerrors.ZillowFail

Note I had to sanitize my API key and street address I was searching by.

@valankar
Copy link

I'm getting this error as well. Does this library work?

@valankar
Copy link

valankar commented Aug 20, 2022

@clkwrkunvrs
Copy link

clkwrkunvrs commented Aug 20, 2022 via email

@valankar
Copy link

The only thing I found was a Rapid API:

https://rapidapi.com/s.mahmoud97/api/zillow56/

which is unfortunately not free.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants