senate

package
v0.0.0-...-3a172ff Latest Latest
Warning

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

Go to latest
Published: May 10, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bostad

type Bostad struct {
	ObjektNummer string
	Url          string
	Kommun       *string
	Adress       *string
	AntalRum     *float64
	Yta          *float64
	Hyra         *float64
	Balkong      bool
	Parkering    bool
	TV           *string
	Internet     *string
	Ovrigt       *string
	LedigFran    *string
	BildUrl      *string
}

func (Bostad) Data

func (b Bostad) Data() provider.ResidenceData

func (Bostad) ID

func (b Bostad) ID() string

type Client

type Client struct {
	BaseURL   *url.URL
	UserAgent string
	// contains filtered or unexported fields
}

func New

func New(baseUrl string, httpClient *http.Client) (*Client, error)

func (Client) CurrentResidences

func (c Client) CurrentResidences(out chan provider.Residence, errout chan error)

type Scraper

type Scraper struct {
	// contains filtered or unexported fields
}

func NewScraper

func NewScraper(client *Client, httpClient *http.Client) *Scraper

func (Scraper) AdDetails

func (s Scraper) AdDetails(u *url.URL) (*Bostad, error)

func (Scraper) Ads

func (s Scraper) Ads(u *url.URL) (*[]url.URL, error)

Jump to

Keyboard shortcuts

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