realestatecomau

package module
v0.0.0-...-93700bc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2016 License: GPL-2.0 Imports: 8 Imported by: 1

README

go-realestatecomau

Build Status

Go library for scraping real estate information from realestate.com.au.

API Documentation

Documentation

Overview

Package realestatecomau scrapes real estate information from realestate.com.au.

Index

Constants

View Source
const (
	// RealEstateComAuURL is the base URL for the website.
	RealEstateComAuURL = "http://www.realestate.com.au"

	// RealEstateComAuBuyURL is the URL used to view purchasable real estate.
	RealEstateComAuBuyURL = RealEstateComAuURL + "/buy/in-%s/list-1"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Image

type Image struct {
	DataType string
	ThumbURL string
	URL      string
	Data     []byte
}

Image is the structure for images downloaded from the website.

type Info

type Info struct {
	Address      string
	PriceText    string
	SaleType     string
	PropertyType string
	Bedrooms     int
	Bathrooms    int
	CarSpaces    int
	Link         string
	FloorPlans   []Image
	Photos       []Image
	Inspections  []Inspection
}

Info is the structure containing scraped information.

func GetInfo

func GetInfo(address string) (info *Info, err error)

GetInfo scrapes information for the address given. Images are not downloaded.

func (*Info) GetImages

func (info *Info) GetImages() (err error)

GetImages downloads images for this property (see Photos and FloorPlans).

func (*Info) GetInspections

func (info *Info) GetInspections() (err error)

GetInspections scrapes inspection details.

type Inspection

type Inspection struct {
	Date string
	Time string
}

Inspection is a structure storing the inspection times for properties.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL