我正试图从Zillow中拉出房屋清单的“每月费用”部分。本质上,我需要支付抵押贷款,HOA(如果有)和财产税的费用。 (请参阅此链接:https://www.zillow.com/homedetails/181-Willow-St-Johnson-City-NY-13790/29756925_zpid/)
我一直在使用Python包装器,但是包装器似乎只包含一些参数。我遇到另一个无法提取租金数据的问题,解决方案是我需要将实际参数添加到zillow api包中。 (请参阅指向该Stackoverflow问题的链接:Pulling Zillow Rent Data from Zillow API)
我还从Zillow找到了这个资源,我认为这是获取抵押数据的关键:
Zillow抵押API的主页: https://www.zillow.com/mortgage/api/#/
用于获取抵押贷款利率的API页面: https://mortgageapi.zillow.com/api/getCurrentRates
import pyzillow
from pyzillow.pyzillow import ZillowWrapper, GetDeepSearchResults
import pandas as pd
house = pd.read_excel('Housing_Output.xlsx')
### Login to Zillow API
address = ['123 Test Street City, State Abbreviation'] # Fill this in with an address
zip_code = ['zip code'] # fill this in with a zip code
# API Key needed from Zillow to login
zillow_data = ZillowWrapper(API KEY)
# Access Zillow deep search API
deep_search_response = zillow_data.get_deep_search_results(address, zip_code)
result = GetDeepSearchResults(deep_search_response)
print(result.zestimate_amount)
print(result.tax_value)