parser

package
v0.0.0-...-f02f0c9 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCast

func GetCast(edges []castNodeWrapper) []*pipe.Cast

func GetFAQ

func GetFAQ(total int64, edges []faqEdge) *pipe.FAQ

func GetGenres

func GetGenres(genres []withTextAndID) []*pipe.Genre

func GetImages

func GetImages(total int64, primaryImage primaryImage, edges []imageEdge, doc *goquery.Document) *pipe.Images

func GetKeywords

func GetKeywords(k keywords) *pipe.Keywords

func GetNextJSData

func GetNextJSData(doc *goquery.Document) (*nextJSData, error)

GetNextJSData extracts the second JSON string which is usually in the middle or bottom of the web page's source code the Next.JS framework automatically generates this. Most likely, the structure of this JSON object is going to change. But as long as they use the Next.JS framework, the approach remains the same.

func GetPopularity

func GetPopularity(m meterRanking) *pipe.Popularity

func GetRelatedTitles

func GetRelatedTitles(edges []moreLikeThisTitlesEdge) []*pipe.RelatedTitle

func GetReviews

func GetReviews(totalUsers int64, totalExternal int64, featuresEdges []featuredReviewEdge) *pipe.Reviews

func GetSeries

func GetSeries(s series) *pipe.Series

func GetSoundtracks

func GetSoundtracks(edges []soundtrackEdge) []*pipe.Soundtrack

func GetTitle

func GetTitle(text string, original string, akaEdges []akaEdge) *pipe.Title

func GetTrivia

func GetTrivia(total int64, edges []triviaEdge) *pipe.Trivia

func GetVideos

func GetVideos(total int64, primaryEdges []primaryVideosEdge, stripEdges []videoStripEdge) *pipe.Videos

Types

type DisplayNameClass

type DisplayNameClass struct {
	Value string `json:"value"`
}

type IDWrapper

type IDWrapper struct {
	ID string `json:"id"`
}

type PurpleContentType

type PurpleContentType struct {
	DisplayName DisplayNameClass `json:"displayName"`
}

Jump to

Keyboard shortcuts

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