imrankhan17 / pyzoopla Goto Github PK
View Code? Open in Web Editor NEWA Python package to access information about properties from Zoopla
License: MIT License
A Python package to access information about properties from Zoopla
License: MIT License
Receive the following output when running this code:
from pyzoopla.prices import PricesSearch
results = PricesSearch(location='bs')
print(results)
print(results.assumed_search_location)
print(results.market_activity(period=1, ))
print(results.total_pages)
print(results.total_properties)
print(results.all_properties(page_start=1, page_end=4))
output
https://www.zoopla.co.uk/house-prices/bs/
BS
{'period': 1, 'property_type': 'all', 'average_price': 340603, 'num_sales': 7204, 'average_value': 334743, 'value_change': 27535}
10935
437387
[]
TypeError: all_properties() got an unexpected keyword argument 'page_limit'
Opening your file shows the following:
def all_properties(self, page_start=None, page_end=None):
"""
List of all property ID's for specified location.
:param page_start: page no. to start scraping from
:param page_end: page no. to scrape till
:return: list of ID's
"""
page_start = page_start if page_start else 1
page_end = page_end if page_end else self.total_pages + 1
if page_end == 1:.....
But your example states:
"results.all_properties(page_limit=1)"
SEARCHING your code for page_limit yields nothing.
Further, I'm able to retrieve aggregate detail such as this:
results.market_activity()
{'period': 20, 'property_type': 'all', 'average_price': 217189, 'num_sales': 323350, 'average_value': 334743, 'value_change': 224485}
But the results.all_properties consistently returns an empty string (even if I specify appropriate start and end pages- which look like the only two arguments permissible:
results.all_properties(1,4)
[]
Will raise as separate issue//////
I encountered an installation error while trying to install the "pyzoopla" package using pip. The error message indicates that the build process is failing due to a missing "requirements.txt" file. Here's the error message:
FileNotFoundError: [Errno 2] No such file or directory: 'requirements.txt'
It seems that the package lacks this essential file, which is used to specify build dependencies. Could you please add a "requirements.txt" file or provide guidance on how to successfully install the package? Thank you!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.