parser

package
v0.0.0-...-d19cdba Latest Latest
Warning

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

Go to latest
Published: May 26, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PageFetcher

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

func NewPageFetcher

func NewPageFetcher(url string, pSub string) *PageFetcher

func (*PageFetcher) FetchTablePage

func (pf *PageFetcher) FetchTablePage(ctx context.Context, group string, date string) (*html.Node, error)

FetchTablePage implements application.PageFetcher

type TableParser

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

func NewTableParser

func NewTableParser(tr application.TableRepository) *TableParser

func (*TableParser) PraseTable

func (tp *TableParser) PraseTable(ctx context.Context, doc *html.Node) (map[time.Weekday][][]core.Subject, error)

Jump to

Keyboard shortcuts

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