Python 错误<;异常str()失败>;从pyzillow的使用

Python 错误<;异常str()失败>;从pyzillow的使用,python,web-scraping,Python,Web Scraping,我用pyzillow软件包搜集了一所房子的信息。但我一直有一个错误: Traceback (most recent call last): File "/Users/wangguijie/Documents/Codes/日常python/zilloww/zillowscraping.py", line 21, in <module> updated_property_details_response = zillow_data.get_updated_property_d

我用pyzillow软件包搜集了一所房子的信息。但我一直有一个错误:

Traceback (most recent call last):
  File "/Users/wangguijie/Documents/Codes/日常python/zilloww/zillowscraping.py", line 21, in <module>
    updated_property_details_response = zillow_data.get_updated_property_details(zpid = Zillow_id)
  File "/Applications/anaconda3/lib/python3.7/site-packages/pyzillow/pyzillow.py", line 43, in get_updated_property_details
    return self.get_data(url, params)
  File "/Applications/anaconda3/lib/python3.7/site-packages/pyzillow/pyzillow.py", line 82, in get_data
    raise ZillowError(int(response.findall('message/code')[0].text))
pyzillow.pyzillowerrors.ZillowError: <exception str() failed>

如果我使用另一个Zillow_id,如“48749425”,我没有得到任何错误,一切都很好。但是如果我使用从GetDeepSearchResults得到的结果中减去的Zillow_id,它会不断报告我这个错误。我不知道我错在哪里。有人能帮忙吗?谢谢你的帮助

你能上传整个错误追踪吗?@funie200谢谢你的提问!我编辑了这个问题。我不熟悉ZiLoW的API,但是如果这是你的API密钥在帖子中,你可能想删除它并考虑这个密钥被破坏了。你能上传整个错误回溯吗?@ FunIE200谢谢你的询问!我编辑了这个问题。我不熟悉ZiLoW的API,但如果这是你的API密钥在帖子中,你可能想删除它,并认为该密钥受到损害。
from pyzillow.pyzillow import ZillowWrapper, GetDeepSearchResults, GetUpdatedPropertyDetails
address = '16366 Brisk Breeze Aly,Winter Garden, FL'
zipcode = '34787'
zillow_data = ZillowWrapper('X1-********')
deep_search_response = zillow_data.get_deep_search_results(address,zipcode)


result = GetDeepSearchResults(deep_search_response)
print(result.zillow_id)
print(type(result.zillow_id))
print(result.home_type)

Zillow_id = result.zillow_id
print(type(Zillow_id))
print(Zillow_id)
Zillow_data = ZillowWrapper('X1-*******')
updated_property_details_response = zillow_data.get_updated_property_details(zpid = Zillow_id)
result = GetUpdatedPropertyDetails(updated_property_details_response)
# print(48749425)
print(result.home_type)