Tutorial#
Installation#
(.venv) $ pip install <library>
Creating recipes#
To create a recipe, you can use the scrape_housing_data.script.get_data_from_mudah()
function:
- scrape_housing_data.script.scrape_data_from_mudah(url: str = 'https://search.mudah.my/v1/search', headers: dict = {}, params: dict = {'category': 2000, 'from': 0, 'limit': 200}) dict #
Scrape mudah.my website for property listings, either for sale or rent.
- Returns:
A JSON response received from web requests
- Return type:
dict
- scrape_housing_data.script.append_data_to_json_file(data: list = [], filename: str | None = None) None #
Initialize an empty list or load existing data from the file
- Parameters:
data (list, optional) – _description_, defaults to []
filename (Optional[str], optional) – _description_, defaults to None