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

sometimes below_the_fold lacks propertyHistoryInfo #11

Closed
andrewljohnson opened this issue Mar 8, 2022 · 4 comments
Closed

sometimes below_the_fold lacks propertyHistoryInfo #11

andrewljohnson opened this issue Mar 8, 2022 · 4 comments

Comments

@andrewljohnson
Copy link

Sometimes, the below_the_fold API call doesn't return a propertyHistoryInfo key. I speculate it's because this house is off-market.

response = Redfin().search("3947 Kings Row Reno Nevada")
url = response['payload']['exactMatch']['url']
initial_info = Redfin().initial_info(url)
property_id = initial_info['payload']['propertyId']
btf_data = Redfin().below_the_fold(property_id)
print(btf_data["payload"]["propertyHistoryInfo"])
Traceback (most recent call last):
  File "<console>", line 1, in <module>
KeyError: 'propertyHistoryInfo'

When I view the page on Redfin, the data is there.

I also tried to find this data in other API calls but couldn't find it.

Any help is appreciated!

@andrewljohnson
Copy link
Author

I found setting listingId worked to get propertyHistoryInfo always:

mls_data = Redfin().meta_property('belowTheFold', {'propertyId': property_id, "listingId":listing_id}, page=True)

@reteps
Copy link
Owner

reteps commented Mar 9, 2022

Haha, related to #6 -- I guess it's an optional parameter.

@reteps reteps closed this as completed Mar 9, 2022
@reteps
Copy link
Owner

reteps commented Mar 9, 2022

Noted by newest commit (1696bee).

@ianvanhoven
Copy link

My issue was the avm_details call failing if listing_id was missing.

FWIW, I found passing a dummy listing_id value did the trick...

avm_details = client.avm_details( property_id , 1 ) ;

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

3 participants