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

Hitting captcha error for Zillow #17

Open
dimo414 opened this issue Sep 30, 2023 · 5 comments
Open

Hitting captcha error for Zillow #17

dimo414 opened this issue Sep 30, 2023 · 5 comments

Comments

@dimo414
Copy link
Contributor

dimo414 commented Sep 30, 2023

I've started hitting an error with the Zillow API:

ERROR   error while estimating valuation: estimator failed: error looking up property on zillow: error querying zillow api: {"appId":"PXHYx10rg3","jsClientSrc":"/HYx10rg3/init.js","firstPartyEnabled":true,"uuid":"fe855645-5fde-11ee-837c-59b695626650","hostUrl":"/HYx10rg3/xhr","blockScript":"/HYx10rg3/captcha/captcha.js?a=c&u=fe855645-5fde-11ee-837c-59b695626650&v=&m=0","altBlockScript":"https://captcha.px-cloud.net/PXHYx10rg3/captcha.js?a=c&u=fe855645-5fde-11ee-837c-59b695626650&v=&m=0","customLogo":"https://www.zillowstatic.com/s3/pfs/static/z-logo-default.svg"}:

I'm able to replicate the request to https://www.zillowstatic.com/autocomplete/v3/suggestions?q=... via curl successfully, so it looks like it's the second request to zm.zillow.com that is being rejected.

Not sure if there's any easy fixes here, but figured it was worth reporting at least.

@peppys
Copy link
Owner

peppys commented Oct 1, 2023

Interesting. Is this happening every time for you now? I'm actually not able to recreate this. How often are you running this program? I wonder if they have some anti-spam automation kicking in.

@dimo414
Copy link
Contributor Author

dimo414 commented Oct 1, 2023

Not often at all, still just experimenting with crib. It's happening consistently on my Google Cloud instance atm, but it was working up until a day or so ago.

@peppys
Copy link
Owner

peppys commented Oct 7, 2023

Hmm that's odd. I just spun up a GCP instance and tested it out, and it seems to work fine. Is it still happening to you, and does it happen consistently for any address you provide?

Screenshot 2023-10-06 at 6 15 20 PM

@dimo414
Copy link
Contributor Author

dimo414 commented Oct 10, 2023

Yeah hitting it regardless of the address, e.g.:

$ bin/crib value -a '1443 devlin dr, los angeles, ca'
 ██████ ██████  ██ ██████
██      ██   ██ ██ ██   ██
██      ██████  ██ ██████
██      ██   ██ ██ ██   ██
 ██████ ██   ██ ██ ██████

  ERROR   error while estimating valuation: estimator failed: error looking up property on zillow: error querying zillow api: {"appId":"PXHYx10rg3","jsClientSrc":"/HYx10rg3/init.js","firstPartyEnabled":true,"uuid":"73afb4ec-6725-11ee-a57c-5e091c608016","hostUrl":"/HYx10rg3/xhr","blockScript":"/HYx10rg3/captcha/captcha.js?a=c&u=73afb4ec-6725-11ee-a57c-5e091c608016&v=&m=0","altBlockScript":"https://captcha.px-cloud.net/PXHYx10rg3/captcha.js?a=c&u=73afb4ec-6725-11ee-a57c-5e091c608016&v=&m=0","customLogo":"https://www.zillowstatic.com/s3/pfs/static/z-logo-default.svg"}:

Rebooting the instance to get a new IP address similarly doesn't help.

@peppys
Copy link
Owner

peppys commented Oct 10, 2023

Interesting! It seems others similarly get captcha'd when trying to query Zillow's private APIs from Google's servers.

https://stackoverflow.com/questions/41772899/google-app-engine-in-production-unable-to-talk-to-zillow-api-demands-captcha
https://stackoverflow.com/questions/41352056/zillow-api-asking-for-captcha

My guess is Zillow blocked a set of IP ranges to identify bots from GCP. Not sure what we can do here :/ This may not work in GCP for that reason.

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

2 participants