Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetColumnCountFromTr ¶
GetColumnCountFromTr takes in a table row and returns the amount of actual td elements and then the amount of tds taking into account colspan values
func ParseDateFromTd ¶
Types ¶
type PageSectionInfo ¶
type PageSectionInfo struct { Title string `json:"title"` PageId int64 `json:"pageid"` Sections []SectionInfo `json:"sections"` }
type SectionInfo ¶
type SectionInfo struct { TocLevel int `json:"toclevel"` Level string `json:"level"` Heading string `json:"line"` Number string `json:"number"` Index string `json:"index"` FromTitle string `json:"fromtitle"` ByteOffset int32 `json:"byteoffset"` Anchor string `json:"anchor"` LinkAnchor string `json:"linkAnchor"` }
type VolumeInfo ¶
func GetVolumeInfo ¶
func GetVolumeInfo(userAgent, title string, slugOverride *string, tablesToParseOverride *int, verbose bool) []VolumeInfo
func ParseWikipediaTableToVolumeInfo ¶
func ParseWikipediaTableToVolumeInfo(namePrefix, tableHtml string) []VolumeInfo
type WikipediaSectionInfo ¶
type WikipediaSectionInfo struct {
Parse PageSectionInfo `json:"parse"`
}
Click to show internal directories.
Click to hide internal directories.