Skip to main content

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

  1. Go to “http://www.rightmove.co.uk/” and search for whatever listings you are interested in …

  2. Filter the search however you choose …

  3. Run the search and copy the URL of the results page …

  4. 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) `

  1. 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

rightmove_webscraper-1.0.2.tar.gz (1.0 MB view details)

Uploaded Source

Built Distributions

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

rightmove_webscraper-1.0.2-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

rightmove_webscraper-1.0.2-py2.py3-none-any.whl (6.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file rightmove_webscraper-1.0.2.tar.gz.

File metadata

  • Download URL: rightmove_webscraper-1.0.2.tar.gz
  • Upload date:
  • Size: 1.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.3

File hashes

Hashes for rightmove_webscraper-1.0.2.tar.gz
Algorithm Hash digest
SHA256 6ba0530887366beb8d48382c1cb78653bbb63192de6af124c4a239319c9c33d7
MD5 a9154237f6f9173393bebef3ef7c2094
BLAKE2b-256 cb3d47fd1bc44744dfe793c732433473fc84b150355405f62391a12ec2345941

See more details on using hashes here.

File details

Details for the file rightmove_webscraper-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: rightmove_webscraper-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.3

File hashes

Hashes for rightmove_webscraper-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 573605a308c66d2bad37f3679a99ceab230848236cd38134a3319e8b43ec5218
MD5 54193396f875697dda6d077f2eebdec8
BLAKE2b-256 125957285846eee5275f377db03804f1f3c11f2650617e0cd41e0d269708f671

See more details on using hashes here.

File details

Details for the file rightmove_webscraper-1.0.2-py2.py3-none-any.whl.

File metadata

  • Download URL: rightmove_webscraper-1.0.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.3

File hashes

Hashes for rightmove_webscraper-1.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 cad866c1217734e40d733fdc7e04f8870785faec3f0b26a26d75738096dc2e11
MD5 3879eeac0e2273df0804d4a294bdb7c3
BLAKE2b-256 ee694df8a4d8f18e403d8dddeea7892eb1fe93061371f8e76ae544e5eab8596d

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