scraper

package
v0.0.0-...-8aaa864 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SitesImmo = Site{
	Name:            "immo",
	ItemSelector:    ".result-list__listing",
	TitleSelector:   ".criteriagroup h1",
	AddressSelector: ".is24-expose-address",
	RentSelector:    ".is24qa-kaltmiete.is24-value",
	SizeSelector:    ".is24qa-flaeche",
	RoomsSelector:   ".is24qa-zi.is24-value",
}

Functions

func Enabled

func Enabled(by, elementName string) func(selenium.WebDriver) (bool, error)

func ScrapeExpose

func ScrapeExpose(exposeID string) database.Expose

ScrapeExpose scrapes a single exposes data

func ScrapeExposeWithBrowser

func ScrapeExposeWithBrowser(exposeID string) database.Expose

func ScrapeResultList

func ScrapeResultList(url string) []string

ScrapeResultList performs the initial scraping of the result list and returns

func ScrapeResultListWithBrowser

func ScrapeResultListWithBrowser(url string) []string

Types

type Site

type Site struct {
	Name             string
	URL              string
	SearchURL        string
	ItemSelector     string
	ItemLinkSelector string
	TitleSelector    string
	AddressSelector  string
	RentSelector     string
	SizeSelector     string
	RoomsSelector    string
}

type SiteItem

type SiteItem struct {
	SiteID string
	ID     string
	URL    string
}

Jump to

Keyboard shortcuts

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