MAL Scrapper v0.1.3 MalScrapper View Source
Scrapper for My Anime List. It provides basic functionalities to query data from the site
Link to this section Summary
Link to this section Types
Link to this type
genres()
View Sourcegenres() :: :Action | :Adventure | :Cars | :Comedy | :Dementia | :Demons | :Drama | :Ecchi | :Fantasy | :Game | :Harem | :Hentai | :Historical | :Horror | :Josei | :Kids | :Magic | :"Martial Arts" | :Mecha | :Military | :Music | :Mystery | :Parody | :Police | :Psychological | :Romance | :Samurai | :School | :"Sci-Fi" | :Seinen | :Shoujo | :"Shoujo Ai" | :Shounen | :Shounen | :"Shounen Ai" | :"Slice of Life" | :Space | :Sports | :"Super Power" | :Supernatural | :Thriller | :Vampire | :Yaoi | :Yuri
Link to this type
search_type()
View Sourcesearch_type() :: :all | :anime | :character | :person | :manga | :news | :featured | :forum | :club | :user
Link to this type
valid_top_types()
View Sourcevalid_top_types() :: :airing | :upcoming | :tv | :movie | :ova | :special | :bypopularity | :favorite
Link to this section Functions
Gets anime by genre
Returns a list of maps with the data
## Examples: iex> MalScrapper.get_anime_by_genre :Action [
%{
description: "Yato and Yukine have finally mended their relationship as god..."
metadata: [
type: "TV",
episodes: "13",
score: "8.38",
start_date: "10-03-15",
members: "714,152"
],
name: "Noragami Aragoto"
},
...
]
Link to this function
get_top_anime(type, limit \\ 1)
View Sourceget_top_anime(valid_top_types(), Integer.t()) :: List.t()
Gets top anime by the specified type
Returns a list of maps with the data
## Examples: iex> AnimeData.top :upcoming [
%{
details: %{
aired: "Apr 2009 - Jul 2010",
episodes: "TV (64 eps)",
members: "1,533,286 members"
},
name: "Fullmetal Alchemist: Brotherhood",
rank: 1
},
...
]
Link to this function
search(type \\ :all, term)
View Sourcesearch(search_type(), String.t()) :: List.t()
REST Quick search feature
Returns the matching elements
## Example: iex> MalScrapper.search :person, "hanazawa" {:ok,
%{
"categories" => [
%{
"items" => [
%{
"es_score" => 4.724693,
"id" => 185,
"image_url" => "https://cdn.myanimelist.net/images/voiceactors/2/41455.jpg",
"name" => "Hanazawa, Kana",
"payload" => %{
"alternative_name" => "HanaKana; KanaHana",
"birthday" => "Feb 25, 1989",
"favorites" => 72213,
"thumbnail_url" => "https://cdn.myanimelist.net/r/116x76/images/voiceactors/2/41455.jpg?s=d9914bb7de8c6ceec02dc05bac8d36ea",
"type" => "person",
"url" => "https://myanimelist.net/people/185/Kana_Hanazawa"
},
...
],
]
}
]
}
}