tomato

package
v1.12.2 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2021 License: OSL-3.0 Imports: 3 Imported by: 0

README

Rotten Tomatoes

curl -o index.html https://www.rottentomatoes.com/m/one_night_in_miami

Looking for:

<script type="application/ld+json">
{
   "aggregateRating": {
      "ratingValue": "98"
   }
}
</script>
<script id="score-details-json" type="application/json">
{
   "scoreboard": {
      "audienceScore": "79"
   }
}
</script>

Documentation

Overview

Rotten Tomatoes

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Audience

type Audience struct {
	Scoreboard struct {
		AudienceScore string
	}
}

type Review

type Review struct {
	AggregateRating struct {
		RatingValue string
	}
}

type Score

type Score struct {
	mech.Node
}

func NewScore

func NewScore(addr string) (Score, error)

func (Score) NewAudience

func (s Score) NewAudience() (Audience, error)

func (Score) NewReview

func (s Score) NewReview() (Review, error)

Jump to

Keyboard shortcuts

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