getratings

package
v0.0.0-...-ef27684 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ASCIIPoster

func ASCIIPoster()

ASCIIPoster generates the ASCII POSTER!!

func DataCleaner

func DataCleaner(data string) string

func GetImdbParentsGuide

func GetImdbParentsGuide(MovieName string)

Scrapes IMDB Parental Ratings

func GetJSON

func GetJSON(url string, target interface{}) error

GetJSON Function which takes the url and the target as arguments for parsing json

func GetTrailer

func GetTrailer(mname string) string

GetTrailer takes in a movie name as argument and searches youtube for "<movie name> movie trailer" and returns the first result

func LogError

func LogError(err error)

func PrettyPrinter

func PrettyPrinter(MovieName string, year string)

PrettyPrinter Print function which prints all the information from all the modules

func RtReviewScraper

func RtReviewScraper(mname string, year string)

RtReviewScraper function also takes in movieName and year(an optional argument) as arguments prints all the reviews

func RtScraper

func RtScraper(mname string, year string) string

RtScraper function takes the movie name and year(an optional argument) as arguments and returns the rating from rt

Types

type ImdbMovie

type ImdbMovie struct {
	Title      string
	Year       string
	Rated      string
	Released   string
	Genre      string
	Director   string
	Actors     string
	Plot       string
	Awards     string
	Poster     string
	Metascore  string
	ImdbRating string `json:"imdbRating"`
	ImdbID     string
}

ImdbMovie structure for parsing the json from omdbapi

func GetImdbRatings

func GetImdbRatings(mname string) ImdbMovie

GetImdbRatings function takes the moviename as argument and returns the json result from the omdbapi

Jump to

Keyboard shortcuts

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