parser

package
v1.2.10 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2021 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cleanImg, cleanVid bool, l service.Logger) service.API

New to create new parser.

Types

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

Parser parse MyAnimeList web amd convert to easy-to-use data.

func (*Parser) GetAnime

func (p *Parser) GetAnime(id int) (*model.Anime, int, error)

GetAnime to get anime details.

func (*Parser) GetAnimeArticle

func (p *Parser) GetAnimeArticle(id int) ([]model.ArticleItem, int, error)

GetAnimeArticle to get anime featured article list.

func (*Parser) GetAnimeCharacter

func (p *Parser) GetAnimeCharacter(id int) ([]model.CharacterItem, int, error)

GetAnimeCharacter to get anime charater list.

func (*Parser) GetAnimeClub

func (p *Parser) GetAnimeClub(id int) ([]model.ClubItem, int, error)

GetAnimeClub to get anime club list.

func (*Parser) GetAnimeEpisode

func (p *Parser) GetAnimeEpisode(id int, page int) ([]model.Episode, int, error)

GetAnimeEpisode to get anime episode list.

func (*Parser) GetAnimeMoreInfo

func (p *Parser) GetAnimeMoreInfo(id int) (string, int, error)

GetAnimeMoreInfo to get anime more info.

func (*Parser) GetAnimeNews

func (p *Parser) GetAnimeNews(id int) ([]model.NewsItem, int, error)

GetAnimeNews to get anime recommendation list.

func (*Parser) GetAnimePicture

func (p *Parser) GetAnimePicture(id int) ([]string, int, error)

GetAnimePicture to get anime picture list.

func (*Parser) GetAnimeRecommendation

func (p *Parser) GetAnimeRecommendation(id int) ([]model.Recommendation, int, error)

GetAnimeRecommendation to get anime recommendation list.

func (*Parser) GetAnimeReview

func (p *Parser) GetAnimeReview(id int, page int) ([]model.Review, int, error)

GetAnimeReview to get anime review list.

func (*Parser) GetAnimeStaff

func (p *Parser) GetAnimeStaff(id int) ([]model.Role, int, error)

GetAnimeStaff to get anime staff list.

func (*Parser) GetAnimeStats

func (p *Parser) GetAnimeStats(id int) (*model.Stats, int, error)

GetAnimeStats to get anime stats.

func (*Parser) GetAnimeVideo

func (p *Parser) GetAnimeVideo(id int, page int) (*model.Video, int, error)

GetAnimeVideo to get anime video list.

func (*Parser) GetAnimeWithGenre

func (p *Parser) GetAnimeWithGenre(id int, page int) ([]model.AnimeItem, int, error)

GetAnimeWithGenre to get anime list with specific genre.

func (*Parser) GetArticle

func (p *Parser) GetArticle(id int) (*model.Article, int, error)

GetArticle to get featured article detail information.

func (*Parser) GetArticleTag

func (p *Parser) GetArticleTag() ([]model.ArticleTagItem, int, error)

GetArticleTag to get featured article tag list.

func (*Parser) GetArticles

func (p *Parser) GetArticles(page int, tag string) ([]model.ArticleItem, int, error)

GetArticles to get featured article list.

func (*Parser) GetCharacter

func (p *Parser) GetCharacter(id int) (*model.Character, int, error)

GetCharacter to get character details.

func (*Parser) GetCharacterArticle

func (p *Parser) GetCharacterArticle(id int) ([]model.ArticleItem, int, error)

GetCharacterArticle to get character featured article list.

func (*Parser) GetCharacterClub

func (p *Parser) GetCharacterClub(id int) ([]model.ClubItem, int, error)

GetCharacterClub to get character club list.

func (*Parser) GetCharacterOgraphy

func (p *Parser) GetCharacterOgraphy(t string, id int) ([]model.Role, int, error)

GetCharacterOgraphy to get character animeography/mangaography list.

func (*Parser) GetCharacterPicture

func (p *Parser) GetCharacterPicture(id int) ([]string, int, error)

GetCharacterPicture to get character picture list.

func (*Parser) GetCharacterVA added in v1.2.0

func (p *Parser) GetCharacterVA(id int) ([]model.Role, int, error)

GetCharacterVA to get character voice actor list.

func (*Parser) GetClub

func (p *Parser) GetClub(id int) (*model.Club, int, error)

GetClub to get club detail information.

func (*Parser) GetClubMember

func (p *Parser) GetClubMember(id int, page int) ([]model.ClubMember, int, error)

GetClubMember to get club member list.

func (*Parser) GetClubPicture

func (p *Parser) GetClubPicture(id int) ([]string, int, error)

GetClubPicture to get club picture list.

func (*Parser) GetClubRelated

func (p *Parser) GetClubRelated(id int) (*model.ClubRelated, int, error)

GetClubRelated to get club related list.

func (*Parser) GetClubs

func (p *Parser) GetClubs(page int) ([]model.ClubSearch, int, error)

GetClubs to get club list.

func (*Parser) GetGenres

func (p *Parser) GetGenres(t string) ([]model.ItemCount, int, error)

GetGenres to get anime/manga genre list.

func (*Parser) GetMagazine

func (p *Parser) GetMagazine(id int, page int) ([]model.MangaItem, int, error)

GetMagazine to get magazine manga list.

func (*Parser) GetMagazines

func (p *Parser) GetMagazines() ([]model.ItemCount, int, error)

GetMagazines to get manga magazine/serialization list.

func (*Parser) GetManga

func (p *Parser) GetManga(id int) (*model.Manga, int, error)

GetManga to get manga details.

func (*Parser) GetMangaArticle

func (p *Parser) GetMangaArticle(id int) ([]model.ArticleItem, int, error)

GetMangaArticle to get manga featured article list.

func (*Parser) GetMangaCharacter

func (p *Parser) GetMangaCharacter(id int) ([]model.Role, int, error)

GetMangaCharacter to get manga character list.

func (*Parser) GetMangaClub

func (p *Parser) GetMangaClub(id int) ([]model.ClubItem, int, error)

GetMangaClub to get manga club list.

func (*Parser) GetMangaMoreInfo

func (p *Parser) GetMangaMoreInfo(id int) (string, int, error)

GetMangaMoreInfo to get manga more info.

func (*Parser) GetMangaNews

func (p *Parser) GetMangaNews(id int) ([]model.NewsItem, int, error)

GetMangaNews to get manga news list.

func (*Parser) GetMangaPicture

func (p *Parser) GetMangaPicture(id int) ([]string, int, error)

GetMangaPicture to get manga picture list.

func (*Parser) GetMangaRecommendation

func (p *Parser) GetMangaRecommendation(id int) ([]model.Recommendation, int, error)

GetMangaRecommendation to get manga recommendation list.

func (*Parser) GetMangaReview

func (p *Parser) GetMangaReview(id int, page int) ([]model.Review, int, error)

GetMangaReview to get manga review list.

func (*Parser) GetMangaStats

func (p *Parser) GetMangaStats(id int) (*model.Stats, int, error)

GetMangaStats to get manga stats list.

func (*Parser) GetMangaWithGenre

func (p *Parser) GetMangaWithGenre(id int, page int) ([]model.MangaItem, int, error)

GetMangaWithGenre to get manga list with specific genre.

func (*Parser) GetNews

func (p *Parser) GetNews(id int) (*model.News, int, error)

GetNews to get news detail information.

func (*Parser) GetNewsList

func (p *Parser) GetNewsList(page int, tag string) ([]model.NewsItem, int, error)

GetNewsList to get news list.

func (*Parser) GetNewsTag

func (p *Parser) GetNewsTag() (*model.NewsTag, int, error)

GetNewsTag to get news tag list.

func (*Parser) GetPeople

func (p *Parser) GetPeople(id int) (*model.People, int, error)

GetPeople to get people details.

func (*Parser) GetPeopleArticle

func (p *Parser) GetPeopleArticle(id int) ([]model.ArticleItem, int, error)

GetPeopleArticle to get people featured article list.

func (*Parser) GetPeopleCharacter

func (p *Parser) GetPeopleCharacter(id int) ([]model.PeopleCharacter, int, error)

GetPeopleCharacter to get people anime character list.

func (*Parser) GetPeopleManga

func (p *Parser) GetPeopleManga(id int) ([]model.Role, int, error)

GetPeopleManga to get people published manga list.

func (*Parser) GetPeopleNews

func (p *Parser) GetPeopleNews(id int) ([]model.NewsItem, int, error)

GetPeopleNews to get people news list.

func (*Parser) GetPeoplePicture

func (p *Parser) GetPeoplePicture(id int) ([]string, int, error)

GetPeoplePicture to get people picture list.

func (*Parser) GetPeopleStaff

func (p *Parser) GetPeopleStaff(id int) ([]model.Role, int, error)

GetPeopleStaff to get people anime staff list.

func (*Parser) GetProducer

func (p *Parser) GetProducer(id int, page int) ([]model.AnimeItem, int, error)

GetProducer to get producer anime list.

func (*Parser) GetProducers

func (p *Parser) GetProducers() ([]model.ItemCount, int, error)

GetProducers to get anime producer/studio/licensor list.

func (*Parser) GetRecommendation

func (p *Parser) GetRecommendation(rType string, id1, id2 int) (*model.Recommendation, int, error)

GetRecommendation to get recommendation details.

func (*Parser) GetRecommendations

func (p *Parser) GetRecommendations(t string, page int) ([]model.Recommendation, int, error)

GetRecommendations to get anime/manga recommendation list.

func (*Parser) GetReview

func (p *Parser) GetReview(id int) (*model.Review, int, error)

GetReview to get review details.

func (*Parser) GetReviews

func (p *Parser) GetReviews(t string, page int) ([]model.Review, int, error)

GetReviews to get anime/manga/best review list.

func (*Parser) GetSeason

func (p *Parser) GetSeason(season string, year int) ([]model.AnimeItem, int, error)

GetSeason to get seasonal anime list.

func (*Parser) GetTopAnime

func (p *Parser) GetTopAnime(t int, page int) ([]model.TopAnime, int, error)

GetTopAnime to get top anime list.

func (*Parser) GetTopCharacter

func (p *Parser) GetTopCharacter(page int) ([]model.TopCharacter, int, error)

GetTopCharacter to get top character list.

func (*Parser) GetTopManga

func (p *Parser) GetTopManga(t int, page int) ([]model.TopManga, int, error)

GetTopManga to get top manga list.

func (*Parser) GetTopPeople

func (p *Parser) GetTopPeople(page int) ([]model.TopPeople, int, error)

GetTopPeople to get top people list.

func (*Parser) GetUser

func (p *Parser) GetUser(user string) (*model.User, int, error)

GetUser to get user details.

func (*Parser) GetUserAnime

func (p *Parser) GetUserAnime(query model.UserListQuery) ([]model.UserAnime, int, error)

GetUserAnime to get user anime list.

func (*Parser) GetUserClub

func (p *Parser) GetUserClub(user string) ([]model.Item, int, error)

GetUserClub to get user club list.

func (*Parser) GetUserFavorite

func (p *Parser) GetUserFavorite(user string) (*model.UserFavorite, int, error)

GetUserFavorite to get user favorite list.

func (*Parser) GetUserFriend

func (p *Parser) GetUserFriend(user string, page int) ([]model.UserFriend, int, error)

GetUserFriend to get user friend list.

func (*Parser) GetUserHistory

func (p *Parser) GetUserHistory(user string, t string) ([]model.UserHistory, int, error)

GetUserHistory to get user history list.

func (*Parser) GetUserManga

func (p *Parser) GetUserManga(query model.UserListQuery) ([]model.UserManga, int, error)

GetUserManga to get user manga list.

func (*Parser) GetUserRecommendation

func (p *Parser) GetUserRecommendation(user string, page int) ([]model.Recommendation, int, error)

GetUserRecommendation to get user recommendation list.

func (*Parser) GetUserReview

func (p *Parser) GetUserReview(user string, page int) ([]model.Review, int, error)

GetUserReview to get user review list.

func (*Parser) GetUserStats

func (p *Parser) GetUserStats(user string) (*model.UserStats, int, error)

GetUserStats to get user stats details.

func (*Parser) SearchAnime

func (p *Parser) SearchAnime(query model.Query) ([]model.AnimeSearch, int, error)

SearchAnime to search anime.

func (*Parser) SearchCharacter

func (p *Parser) SearchCharacter(name string, page int) ([]model.CharacterSearch, int, error)

SearchCharacter to search character.

func (*Parser) SearchClub

func (p *Parser) SearchClub(query model.ClubQuery) ([]model.ClubSearch, int, error)

SearchClub to search club.

func (*Parser) SearchManga

func (p *Parser) SearchManga(query model.Query) ([]model.MangaSearch, int, error)

SearchManga to search manga.

func (*Parser) SearchPeople

func (p *Parser) SearchPeople(name string, page int) ([]model.PeopleSearch, int, error)

SearchPeople to search people.

func (*Parser) SearchUser

func (p *Parser) SearchUser(query model.UserQuery) ([]model.UserSearch, int, error)

SearchUser to search user.

type Requester

type Requester interface {
	Do(*http.Request) (*http.Response, error)
}

Requester is mockable http client.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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