A class for scraping data from rightmove.co.uk
Project description
# rightmove-webscraper
http://www.rightmove.co.uk/ is one of the UK’s largest property listings websites, hosting thousands of listings of properties for sale and to rent.
rightmove_webscraper.py is a simple Python interface to scrape property listings from the website and prepare them in a Pandas dataframe for analysis.
## Installation
Version 1.0 is now available to install via Pip:
pip install -U rightmove-webscraper
## How to use
Go to “http://www.rightmove.co.uk/” and search for whatever listings you are interested in …
Filter the search however you choose …
Run the search and copy the URL of the results page …
Create an instance of the class on the URL …
` from rightmove_webscraper import RightmoveData
url = “https://www.rightmove.co.uk/property-for-sale/find.html?searchType=SALE&locationIdentifier=REGION%5E94346” rm = RightmoveData(url) `
Access the data using the methods and attributes of the object …
Get the average price of all listings returned by the search:
` rm.average_price `
Show the total number of listings returned by the search:
` rm.results_count `
Access the full results as a Pandas dataframe at the <code>.get_results</code> attribute.
` rm.get_results `
Get quick summary statistics of the results, showing the number of listings and average price grouped by the number of bedrooms:
` rm.summary() `
Alternatively group the results by any other column returned in the <code>.get_results</code> DataFrame, for example Postcode:
` rm.summary(by=”postcode”) `
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
Built Distribution
Hashes for rightmove_webscraper-1.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf46c2366a86fcc88428e49d43c2fb03247cebdca39028db6d2c9aae759be9b0 |
|
MD5 | fc728d13e1b1fadda99a985bf6d2e54f |
|
BLAKE2b-256 | efd4db41478b6b76f6ad755ced4f2d34fdc888ae9a433097d129446e9c399c01 |
Hashes for rightmove_webscraper-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a8a2feda9d0e67cd39bc8658584976a87b45dbb8d0935668828851569100952 |
|
MD5 | 41c647adb568d0a861a64203c3150019 |
|
BLAKE2b-256 | 6db001edd4d562cd549921dd62f795a8bf25ccc3cc56bee220007866fb373f50 |