Skip to content

Implements a very basic scraper to read property details from RightMove.

License

Notifications You must be signed in to change notification settings

aporcupine/go-rightmove

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-rightmove

Implements a very basic scraper to read property details from RightMove.

This package extracts and unmarshals the JSON object that can be found at the bottom of a RightMove search page.

Usage

  1. Go to rightmove.co.uk and search for whatever type of properties you're interested in
  2. Add your required filters to the search
  3. Execute the search and copy the URL of the first results page (e.g. https://www.rightmove.co.uk/property-for-sale/find.html?searchType=SALE&locationIdentifier=REGION%5E87490&maxPrice=200000)
  4. Call the GetPropertiesFromSearchURL function with the search URL
      ctx := context.Background()
      searchURL := "https://www.rightmove.co.uk/property-for-sale/find.html?searchType=SALE&locationIdentifier=REGION%5E87490&maxPrice=200000"
      properties, err := rightmove.GetPropertiesFromSearchURL(ctx, searchURL)
      if err != nil {
        log.Fatalln(err)
      }
    
      fmt.Printf("Retrieved %d properties from RightMove\n", len(properties))
      // Output: Retrieved 817 properties from RightMove
  5. Process the resulting slice as necessary

Legal

This implementation is a proof of concept only. The RightMove 'terms of use' states that the use of "scraping technology" is unauthorized. Do not use this library.

About

Implements a very basic scraper to read property details from RightMove.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages