go_officialcharts

package module
v0.0.0-...-9d0660e Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2020 License: MIT Imports: 8 Imported by: 0

README

go-officialcharts

Unofficial go lib for fetching the UK singles charts from officialcharts.com

Read the docs at godoc.org.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chart

type Chart struct {
	Date  time.Time
	Songs []*Song
}

func GetCharts

func GetCharts(day, month, year int) (*Chart, error)

GetCharts scrapes the officalcharts.com singles chart for the given date.

type PositionMove

type PositionMove int
const (
	PositionMoveUp   PositionMove = 1
	PositionMoveDown PositionMove = 2
	PositionMoveNew  PositionMove = 3
)

type Song

type Song struct {
	Artist             string
	Title              string
	PeakPosition       int
	Position           int
	PositionLastWeek   int
	PositionMoved      PositionMove
	PositionReentry    bool
	WeeksOnChart       int
	RecordLabel        string
	CoverImageSmallURL string
	CoverImageLargeURL string
}

Jump to

Keyboard shortcuts

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