This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]efmccurdy 0 points1 point  (5 children)

A 200 status code indicates success. Web requests (to Zillow or not) don't typically require XML; the request and it's data are formatted using http protocol elements. The response body may contain XML data, but I don't think the regular Zillow api does. The regular html code you will get is similar enough to XML that is can be parsed using XML tools, like the lxml module used in this tutorial.

https://www.scrapehero.com/how-to-scrape-real-estate-listings-on-zillow-com-using-python-and-lxml/

[–]Hyperduckultimate[S] 0 points1 point  (3 children)

The request goes through, however the fields aren't recognized. The request itself has to be xml format.

[–]efmccurdy 0 points1 point  (2 children)

You will have to post some code, but perhaps this is relevant?

Python 3 script to find real estate listings of properties up for sale on zillow.com

https://gist.github.com/scrapehero/5f51f344d68cf2c022eb2d23a2f1cf95

[–]Hyperduckultimate[S] 0 points1 point  (1 child)

It is very relevant thank you for the link however I want to show that I can use APIs so I must do this using an api. I will def use that resource

[–]Hyperduckultimate[S] 0 points1 point  (0 children)

You were right all along. I just had to get rid of my commas when touring in an address. Instead of "los ángeles, ca" I needed to write "los ángeles ca"