
Security News
CISA’s 2025 SBOM Guidance Adds Hashes, Licenses, Tool Metadata, and Context
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
A gem wrapper for http://myanimelist.net that covers all the methods available on the current API For additional documentation, visit: http://myanimelist.net/modules.php?go=api
Add this line to your application's Gemfile:
gem 'myanimelist', '~> 1.0'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install myanimelist
MyAnimeList API requires authentication from the actual site, so you need to sign up first here.
After signing up and verifying your email, you need to assign the username and password on your respective myanimelist API,
here's what you need to do,
If you are using Rails: setup config/initializers/myanimelist.rb
:
MyAnimeList.configure do |config|
config.username = ENV['username']
config.password = ENV['password']
end
If you are not using rails make sure to set this up before you can start searching.
Additional step for verifying credentials from myanimelist.
MyAnimeList.verify_crendetials
Returns an Array of Hashes for the result.
# Anime
> MyAnimeList.search_anime('Fairy Tail')
> MyAnimeList::Anime.search('Fairy Tail')
# Manga
> MyAnimeList.search_manga('Fairy Tail')
> MyAnimeList::Manga.search('Fairy Tail'
Adds anime/manga on your list. For additional Anime
parameters, please refer here. For Manga
, please refer here.
Just imagine that the xml value would be the key:value pair in ruby, as seen below.
# Anime
> MyAnimeList::Anime.add(anime_id, { episode: 1, status: 2 })
=> true
# Manga
> MyAnimeList::Manga.add(manga_id, { chapter: 1 })
=> true
Updates anime/manga on your list. For additional Anime
parameters, please refer here. For Manga
, please refer here.
Just imagine that the xml value would be the key:value pair in ruby, as seen below.
# Anime
> MyAnimeList::Anime.update(anime_id, { episode: 1, status: 2 })
=> true
# Manga
> MyAnimeList::Manga.update(manga_id, { chapter: 1 })
=> true
Remove anime/manga on your list.
# Anime
> MyAnimeList::Anime.remove(anime_id)
=> true
# Manga
> MyAnimeList::Manga.remove(manga_id)
=> true
MyAnimeList.search_anime('Fairy Tail')
# will result to the followinghash
=> [{"id"=>"6702",
"title"=>"Fairy Tail",
"english"=>nil,
"synonyms"=>nil,
"episodes"=>"175",
"score"=>"8.57",
"type"=>"TV",
"status"=>"Finished Airing",
"start_date"=>"2009-10-12",
"end_date"=>"2013-03-30",
"synopsis"=>
"Set in an imaginary world, the Earth Land, there exists a Mage Guild called Fairy Tail...",
"image"=>"http://cdn.myanimelist.net/images/anime/5/18179.jpg"}
}]
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)MyAnimeList for the API.
myanimelist © 2013+, Harvey Ico. Released under the MIT License.
Authored and maintained by Harvey Ico with help from contributors (list).
FAQs
Unknown package
We found that myanimelist demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.