Skip to main content

A unified collection of web data premises eg Apartment for sale, apartment for rent, house for sale, house for rent

Project description

A comprehensive web scraping pipeline for extracting and storing real estate data

Purpose of the package

  • The primary objective of this package is to provide an efficient solution for web scraping tasks. It has essentially functionalities including link extraction, data extraction, data cleaning, and data storage to database.

Features

- Date                      - Bathrooms  
- Build Year                - Car Parking
- Floors                    - Ancillary
- Sitting Rooms             - LandSize
- Dining Rooms              - Price
- Bedrooms                  - District
- Wardrobes                 - Sector

Installation

To install the package, run the following command:

!pip install WebScrapeX

Contribution

Contributions are welcome. If you encounter any bugs or have suggestions for improvements, please let me know at inyangel@yahoo.com. Thanks

Author

License

The package is released under the MIT license. (https://choosealicense.com/licenses/mit/)

Dependencies

The package has the following dependencies:

  • Python Decouple: Used for managing settings and configuration.
  • Python Dotenv: Used for loading environment variables from a .env file

Scraping URLs

The package supports scraping the following types of real estate listings from the Imali.biz website:

Apartment for Sale: https://imali.biz/category/1/125/search?pg=
Apartment for Rent: https://imali.biz/category/0/91/search?pg=
House for Rent: https://imali.biz/category/0/27/search?pg=
House for Sale: https://imali.biz/category/0/24/search?pg=

Usage example

Here's an example of how to use the WebScrapeX package to scrape, clean, and save real estate data:

from WebScrapeX import scrape_clean_save_data

# Specify the link of the real estate type to scrape
url = "https://imali.biz/category/1/125/search?pg="

# Specify the name of the file to save the data (in lowercase)
file_name = "real_estate_data.csv"

# Scrape, clean, and save the data
scrape_clean_save_data(url, file_name)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

webscrapex-0.0.2.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

webscrapex-0.0.2-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file webscrapex-0.0.2.tar.gz.

File metadata

  • Download URL: webscrapex-0.0.2.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for webscrapex-0.0.2.tar.gz
Algorithm Hash digest
SHA256 44344024f5f614b1dac32c0d587068efba6c0fcf9d0ea0523750e19a9546de8c
MD5 6d4e45b4bfad2b9cb73fca8cc50bd221
BLAKE2b-256 1359c4269d2980a728ce088191392f5d01b450a7ac2ce5aa21b43478741deb3e

See more details on using hashes here.

File details

Details for the file webscrapex-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: webscrapex-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for webscrapex-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 54fcfcb67ab1e8f6089771e558225b7975e6d5578ca10324e89d5c127b87e146
MD5 79183f3fe061b41a4f3e5670ffd7f340
BLAKE2b-256 1e9b02c5847df402e8edfa4ebfe6561c5f398dc27977ee897fbcf59002c72a57

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page