scraper

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

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

Go to latest
Published: Nov 25, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const KinoheldBaseUrl = "https://www.kinoheld.de"
View Source
const YorckBaseUrl = "https://yorck.de"

Variables

This section is empty.

Functions

func DateInRange

func DateInRange(date time.Time, dateRange []time.Time) bool

func Register

func Register(driver string, factory func(map[string]any) (Scraper, error))

Types

type EleventEvent

type EleventEvent struct {
	EventName     string
	Synopsis      string
	EventImageURL string
	Schedule      []EleventShowtime
}

type EleventEventListing

type EleventEventListing struct {
	Events []EleventEvent
}

type EleventShowtime

type EleventShowtime struct {
	StartDateTime string
	VenueID       int
}

type FarawayEvent

type FarawayEvent struct {
	Time        string `json:"time"`
	BookingLink string `json:"bookingLink"`
}

type FarawayListing

type FarawayListing struct {
	Url           string         `json:"url"`
	ImagePortrait string         `json:"image-portrait"`
	Title         string         `json:"title"`
	Times         []FarawayEvent `json:"times"`
}

type FarawayMovieData

type FarawayMovieData = map[string][]FarawayListing

type FarawayRepertoire

type FarawayRepertoire struct {
	Title       string
	Description string
	Picture1    string                        `json:"picture_1"`
	EventGroup  []FarawayRepertoireEventGroup `json:"event_group"`
}

type FarawayRepertoireEvent

type FarawayRepertoireEvent struct {
	EventTimetable string `json:"event_timetable"`
}

type FarawayRepertoireEventGroup

type FarawayRepertoireEventGroup struct {
	EventsCollection []FarawayRepertoireEvent `json:"events_collection"`
}

type FarawayRepertoireWrapper

type FarawayRepertoireWrapper struct {
	Data []FarawayRepertoire
}

type KinoheldFlag

type KinoheldFlag struct {
	Name     string
	Category string
}

type KinoheldMovie

type KinoheldMovie struct {
	Name string
}

type KinoheldResponse

type KinoheldResponse struct {
	Shows  []KinoheldShow
	Movies map[string]KinoheldMovie
}

type KinoheldScraper

type KinoheldScraper struct {
	ID int
}

func (KinoheldScraper) Scrape

func (s KinoheldScraper) Scrape(ch chan<- []model.Showtime, dates []time.Time, tz *time.Location) error

type KinoheldShow

type KinoheldShow struct {
	Name      string
	MovieID   string
	URL       string
	Flags     []KinoheldFlag
	Beginning KinoheldTime
}

type KinoheldTime

type KinoheldTime struct {
	ISOFull string
}

type Scraper

type Scraper interface {
	Scrape(chan<- []model.Showtime, []time.Time, *time.Location) error
}

func Instance

func Instance(driver string, driverArgs map[string]any) (Scraper, error)

type SiffScreening

type SiffScreening struct {
	EventName   string `json:"EventName"`
	ShowtimeRaw string `json:"Showtime"`
}

func (*SiffScreening) Showtime

func (ss *SiffScreening) Showtime(tz *time.Location) (time.Time, error)

type YorckBuildInfo

type YorckBuildInfo struct {
	BuildID string
}

type YorckCinema

type YorckCinema struct {
	Name string
}

type YorckCinemaFields

type YorckCinemaFields struct {
	Fields YorckCinema
}

type YorckFilm

type YorckFilm struct {
	Title    string
	Sessions []YorckSessionFields
}

type YorckFilmFields

type YorckFilmFields struct {
	Fields YorckFilm
}

type YorckFilmWrapper

type YorckFilmWrapper struct {
	PageProps YorckPageProps
}

type YorckPageProps

type YorckPageProps struct {
	Films []YorckFilmFields
}

type YorckSession

type YorckSession struct {
	StartTime string
	Formats   []string
	Cinema    YorckCinemaFields
}

type YorckSessionFields

type YorckSessionFields struct {
	Fields YorckSession
}

Jump to

Keyboard shortcuts

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