AnimeDl 1.8.1
See the version list below for details.
dotnet add package AnimeDl --version 1.8.1
NuGet\Install-Package AnimeDl -Version 1.8.1
<PackageReference Include="AnimeDl" Version="1.8.1" />
paket add AnimeDl --version 1.8.1
#r "nuget: AnimeDl, 1.8.1"
// Install AnimeDl as a Cake Addin #addin nuget:?package=AnimeDl&version=1.8.1 // Install AnimeDl as a Cake Tool #tool nuget:?package=AnimeDl&version=1.8.1
AnimeDl
<a href="https://discord.gg/mhxsSMy2Nf"><img src="https://img.shields.io/badge/Discord-7289DA?style=for-the-badge&logo=discord&logoColor=white"></a>
AnimeDl scrapes animes from sites.
<br> <a href="https://www.buymeacoffee.com/jerry08"><img src="https://img.buymeacoffee.com/button-api/?text=Buy me a coffee&emoji=&slug=jerry08&button_colour=FFDD00&font_colour=000000&font_family=Poppins&outline_colour=000000&coffee_colour=ffffff" /></a> <br>
πSTAR THIS REPOSITORY TO SUPPORT THE DEVELOPER AND ENCOURAGE THE DEVELOPMENT OF THE PROJECT!
<br>
Please do not attempt to upload AnimeDl or any of it's forks on Playstore or any other Android appstores on the internet. Doing so, may infringe their terms and conditions. This may result to legal action or immediate take-down of the app.
Official Discord Server
<p align="center"> <a href="https://discord.gg/mhxsSMy2Nf"> <img src="https://invidget.switchblade.xyz/mhxsSMy2Nf"> </a> </p>
- Available Anime sources:-
SITE | STATUS | DOWNLOADS |
---|---|---|
Gogo | WORKING | YES |
Zoro | WORKING | YES |
9Anime | NOT WORKING | NO |
Tenshi | WORKING | YES |
Install
- π¦ NuGet:
dotnet add package AnimeDl
Usage
AnimeDl exposes its functionality through a single entry point β the AnimeClient
class.
Create an instance of this class and use the provided operations to send requests.
Searching
You can execute a search query and get its results by calling Search(...)
or SearchAsync(...)
:
using AnimeDl;
using AnimeDl.Scrapers;
var client = new AnimeClient(AnimeSites.GogoAnime);
var animes = await client.SearchAsync("naruto");
Anime
Retrieving anime metadata
To retrieve the metadata associated with an anime, execute a search query as mentioned above:
using AnimeDl;
using AnimeDl.Scrapers;
var client = new AnimeClient(AnimeSites.GogoAnime);
var animes = await client.SearchAsync("naruto");
var title = animes[0].Title;
//More anime details
var animeInfo = await client.GetAnimeInfoAsync(animes[0].Id);
var image = animeInfo.Image;
var summary = animeInfo.Summary;
Episodes
Retrieving anime episodes and episode metadata
using AnimeDl;
using AnimeDl.Scrapers;
var client = new AnimeClient(AnimeSites.GogoAnime);
var animes = await client.SearchAsync("naruto");
var episodes = await client.GetEpisodesAsync(animes[0].Id);
var description = episodes[0].Description;
var link = episodes[0].Link;
Video Servers
Retrieving an episode video servers
using AnimeDl;
using AnimeDl.Scrapers;
var client = new AnimeClient(AnimeSites.GogoAnime);
var animes = await client.SearchAsync("naruto");
var episodes = await client.GetEpisodesAsync(animes[0].Id);
var servers = await client.GetVideoServersAsync(episodes[0].Id);
Videos
Retrieving video and metadata
using AnimeDl;
using AnimeDl.Scrapers;
var client = new AnimeClient(AnimeSites.GogoAnime);
var animes = await client.SearchAsync("naruto");
var episodes = await client.GetEpisodesAsync(animes[0].Id);
var servers = await client.GetVideoServersAsync(episodes[0].Id);
var videos = await client.GetVideosAsync(servers[0]);
var videoUrl = videos[0].VideoUrl;
var headers = videos[0].Headers;
var resolution = videos[0].Resolution;
var format = videos[0].Format;
Retrieving aniskip metadata
using System.Linq;
using AnimeDl.Anilist;
var client = new AnilistClient();
var searchResults = await client.SearchAsync("ANIME", search: "chainsaw man");
var animes = searchResults?.Results.Where(x => x.IdMal is not null).ToList();
var media = await client.GetMediaDetailsAsync(animes![0]);
var episodeNum = 1;
var episodeDuration = 1524981 / 1000;
var timeskips = await client.Aniskip.GetAsync(media!.IdMal!.Value, episodeNum, episodeDuration);
var skipType = timeskips?[0].SkipType;
var startTime = timeskips?[0].Interval.StartTime;
var endTime = timeskips?[0].Interval.EndTime;
Downloading videos
using AnimeDl;
using AnimeDl.Scrapers;
var client = new AnimeClient(AnimeSites.GogoAnime);
var animes = await client.SearchAsync("naruto");
var episodes = await client.GetEpisodesAsync(animes[0].Id);
var servers = await client.GetVideoServersAsync(episodes[0].Id);
var videos = await client.GetVideosAsync(servers[0]);
//NB: Video format must be `Container`
await client.DownloadAsync(videos[0].VideoUrl, videos[0].Headers, fileName);
//Donwloading other formats
var metadataResources = await client.GetHlsStreamMetadatasAsync(videos[0].VideoUrl, videos[0].Headers);
var stream = await metadataResources[0].Stream;
await client.DownloadTsAsync(stream, videos[0].Headers, fileName);
//Or
await client.DownloadAllTsThenMergeAsync(stream, videos[0].Headers, fileName, maxParallelDownloads: 10);
//The method above will be faster
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 is compatible. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
.NET Framework | net461 is compatible. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETCoreApp 3.0
- BrotliSharpLib (>= 0.3.3)
- HtmlAgilityPack (>= 1.11.42)
- JGrabber (>= 1.1.0)
- JGrabber.Hls (>= 1.1.0)
- Nager.PublicSuffix (>= 2.3.0)
- Newtonsoft.Json (>= 13.0.1)
-
.NETFramework 4.6.1
- BrotliSharpLib (>= 0.3.3)
- HtmlAgilityPack (>= 1.11.42)
- JGrabber (>= 1.1.0)
- JGrabber.Hls (>= 1.1.0)
- Microsoft.Bcl.AsyncInterfaces (>= 6.0.0)
- Nager.PublicSuffix (>= 2.3.0)
- Newtonsoft.Json (>= 13.0.1)
- System.Text.Json (>= 6.0.5)
- System.Threading.Tasks.Extensions (>= 4.5.4)
-
.NETStandard 2.0
- BrotliSharpLib (>= 0.3.3)
- HtmlAgilityPack (>= 1.11.42)
- JGrabber (>= 1.1.0)
- JGrabber.Hls (>= 1.1.0)
- Microsoft.Bcl.AsyncInterfaces (>= 6.0.0)
- Nager.PublicSuffix (>= 2.3.0)
- Newtonsoft.Json (>= 13.0.1)
- System.Text.Json (>= 6.0.5)
- System.Threading.Tasks.Extensions (>= 4.5.4)
-
.NETStandard 2.1
- BrotliSharpLib (>= 0.3.3)
- HtmlAgilityPack (>= 1.11.42)
- JGrabber (>= 1.1.0)
- JGrabber.Hls (>= 1.1.0)
- Nager.PublicSuffix (>= 2.3.0)
- Newtonsoft.Json (>= 13.0.1)
- System.Text.Json (>= 6.0.5)
-
net5.0
- BrotliSharpLib (>= 0.3.3)
- HtmlAgilityPack (>= 1.11.42)
- JGrabber (>= 1.1.0)
- JGrabber.Hls (>= 1.1.0)
- Nager.PublicSuffix (>= 2.3.0)
- Newtonsoft.Json (>= 13.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.