GithubHelp home page GithubHelp logo

erinvaa / mal-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lhcgreg/mal-api

0.0 2.0 0.0 1.43 MB

.NET API for accessing the myanimelist.net API

License: Apache License 2.0

C# 71.07% HTML 28.93%

mal-api's Introduction

MalApi is a .NET library written in C# for accessing the myanimelist.net API or using scraping methods where no official API is available. Using it is easy:

using (MyAnimeListApi api = new MyAnimeListApi())
{
	api.UserAgent = "my_app"; // MAL now requires applications to be whitelisted. Whitelisted applications identify themselves by their user agent.
	MalUserLookupResults userLookup = api.GetAnimeListForUser("LordHighCaptain");
	foreach (MyAnimeListEntry listEntry in userLookup.AnimeList)
	{
		Console.WriteLine("Rating for {0}: {1}", listEntry.AnimeInfo.Title, listEntry.Score);
	}
}

Binaries are available as a NuGet package called MalApi.

MalApi currently contains these MAL functions:

Also included are some useful implementations of IMyAnimeListApi that wrap another IMyAnimeListApi.

  • CachingMyAnimeListApi caches user lookups for a configurable amount of time.
  • RateLimitingMyAnimeListApi limits MAL requests to once every N milliseconds so you can throttle your requests if you are making a large number of them.
  • RetryOnFailureMyAnimeListApi waits a short period before retrying a request if a request fails. After a certain number of failures, it will give up.

MalApi can be configured to log using any logging library compatible with Common.Logging. See App.config in the MalApi.Example project. MalApi will use the logger name "MAL API". Consult the Common.Logging and NLog documentation for more information about logging.

MalApi is compatible with Mono.

MalApi is licensed under the Apache License 2.0.

mal-api's People

Contributors

lhcgreg avatar master117 avatar

Watchers

James Cloos avatar Erin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.