AnimeDl 1.4.1
See the version list below for details.
dotnet add package AnimeDl --version 1.4.1
NuGet\Install-Package AnimeDl -Version 1.4.1
<PackageReference Include="AnimeDl" Version="1.4.1" />
paket add AnimeDl --version 1.4.1
#r "nuget: AnimeDl, 1.4.1"
// Install AnimeDl as a Cake Addin
#addin nuget:?package=AnimeDl&version=1.4.1
// Install AnimeDl as a Cake Tool
#tool nuget:?package=AnimeDl&version=1.4.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 | SOME |
Zoro | SEMI-WORKING | SOME |
9Anime | NOT WORKING | NO |
Twist | NOT WORKING | NO |
Tenshi | WORKING | YES |
Install
- π¦ NuGet:
dotnet add package AnimeDl
Example 1: Non-Async Method
Here is an example of using animedl
using System;
using AnimeDl;
using AnimeDl.Scrapers;
namespace AnimeApp
{
class Class1
{
public void Example1()
{
var client = new AnimeClient(AnimeSites.Tenshi);
client.OnAnimesLoaded += (s, e) =>
{
var animes = e.Animes;
Console.WriteLine("Animes found: ");
Console.WriteLine();
for (int i = 0; i < animes.Count; i++)
{
Console.WriteLine($"[{i + 1}] {animes[i].Title}");
}
Console.WriteLine();
// Read the anime number selected
Console.Write("Enter anime number: ");
int animeIndex;
while (!int.TryParse(Console.ReadLine() ?? "", out animeIndex))
{
Console.Clear();
Console.WriteLine("You entered an invalid number");
Console.Write("Enter anime number: ");
}
animeIndex--;
Console.WriteLine();
// Read the anime episodes
var episodes = client.GetEpisodes(animes[animeIndex]);
};
client.OnEpisodesLoaded += (s, e) =>
{
var episodes = e.Episodes;
Console.WriteLine("Episodes found: " + episodes.Count);
// Read the episode number selected
Console.Write("Enter episode number: ");
int episodeIndex;
while (!int.TryParse(Console.ReadLine() ?? "", out episodeIndex))
{
Console.Clear();
Console.WriteLine("You entered an invalid number");
Console.Write("Enter episode number: ");
}
episodeIndex--;
Console.WriteLine();
var qualities = client.GetEpisodeLinks(episodes[episodeIndex]);
};
client.OnQualitiesLoaded += (s, e) =>
{
var qualities = e.Qualities;
Console.WriteLine($"Qualities found: " + qualities.Count);
for (int i = 0; i < qualities.Count; i++)
{
Console.WriteLine($"[{i + 1}] {qualities[i].Resolution}");
}
Console.WriteLine();
// Read the episode number selected
Console.Write("Enter quality number: ");
int qualityIndex;
while (!int.TryParse(Console.ReadLine() ?? "", out qualityIndex))
{
Console.Clear();
Console.WriteLine("You entered an invalid number");
Console.Write("Enter quality number: ");
}
qualityIndex--;
// Download the stream
var fileName = $@"{DateTime.Now.Ticks}.mp4";
using (var progress = new ConsoleProgress())
client.Download(qualities[qualityIndex], fileName, progress);
Console.WriteLine("Done");
Console.WriteLine($"Video saved to '{fileName}'");
};
// Read the anime name
Console.Write("Enter anime name: ");
var query = Console.ReadLine() ?? "";
//First (Search anime by name)
client.Search(query);
}
}
}
Example 2: Async Method
Here is an example of using animedl
using System;
using AnimeDl;
using AnimeDl.Scrapers;
namespace AnimeApp
{
class Class1
{
//Method with force load
public static async Task Example2()
{
var client = new AnimeClient(AnimeSites.Tenshi);
// Read the anime name
Console.Write("Enter anime name: ");
var query = Console.ReadLine() ?? "";
var animes = client.Search(query, forceLoad: true);
Console.WriteLine("Animes found: ");
Console.WriteLine();
for (int i = 0; i < animes.Count; i++)
{
Console.WriteLine($"[{i+1}] {animes[i].Title}");
}
Console.WriteLine();
// Read the anime number selected
Console.Write("Enter anime number: ");
int animeIndex;
while (!int.TryParse(Console.ReadLine() ?? "", out animeIndex))
{
Console.Clear();
Console.WriteLine("You entered an invalid number");
Console.Write("Enter anime number: ");
}
animeIndex--;
Console.WriteLine();
// Read the anime episodes
var episodes = client.GetEpisodes(animes[animeIndex], forceLoad: true);
Console.WriteLine("Episodes found: " + episodes.Count);
// Read the episode number selected
Console.Write("Enter episode number: ");
int episodeIndex;
while (!int.TryParse(Console.ReadLine() ?? "", out episodeIndex))
{
Console.Clear();
Console.WriteLine("You entered an invalid number");
Console.Write("Enter episode number: ");
}
episodeIndex--;
Console.WriteLine();
var qualities = client.GetEpisodeLinks(episodes[episodeIndex], forceLoad: true);
Console.WriteLine($"Qualities found: " + qualities.Count);
for (int i = 0; i < qualities.Count; i++)
{
Console.WriteLine($"[{i + 1}] {qualities[i].Resolution}");
}
Console.WriteLine();
// Read the episode number selected
Console.Write("Enter quality number: ");
int qualityIndex;
while (!int.TryParse(Console.ReadLine() ?? "", out qualityIndex))
{
Console.Clear();
Console.WriteLine("You entered an invalid number");
Console.Write("Enter quality number: ");
}
qualityIndex--;
// Download the stream
var fileName = $@"{Environment.CurrentDirectory}\{animes[animeIndex].Title} - Ep {episodes[episodeIndex].EpisodeNumber}.mp4";
using (var progress = new ConsoleProgress())
await client.DownloadAsync(qualities[qualityIndex], fileName, progress);
Console.WriteLine("Done");
Console.WriteLine($"Video saved to '{fileName}'");
Console.ReadLine();
}
//Async Method
public static async Task Example3()
{
var client = new AnimeClient(AnimeSites.Tenshi);
// Read the anime name
Console.Write("Enter anime name: ");
var query = Console.ReadLine() ?? "";
var animes = await client.SearchAsync(query);
Console.WriteLine("Animes found: ");
Console.WriteLine();
for (int i = 0; i < animes.Count; i++)
{
Console.WriteLine($"[{i + 1}] {animes[i].Title}");
}
Console.WriteLine();
// Read the anime number selected
Console.Write("Enter anime number: ");
int animeIndex;
while (!int.TryParse(Console.ReadLine() ?? "", out animeIndex))
{
Console.Clear();
Console.WriteLine("You entered an invalid number");
Console.Write("Enter anime number: ");
}
animeIndex--;
Console.WriteLine();
// Read the anime episodes
var episodes = await client.GetEpisodesAsync(animes[animeIndex]);
Console.WriteLine("Episodes found: " + episodes.Count);
// Read the episode number selected
Console.Write("Enter episode number: ");
int episodeIndex;
while (!int.TryParse(Console.ReadLine() ?? "", out episodeIndex))
{
Console.Clear();
Console.WriteLine("You entered an invalid number");
Console.Write("Enter episode number: ");
}
episodeIndex--;
Console.WriteLine();
var qualities = await client.GetEpisodeLinksAsync(episodes[episodeIndex]);
Console.WriteLine($"Qualities found: " + qualities.Count);
for (int i = 0; i < qualities.Count; i++)
{
Console.WriteLine($"[{i + 1}] {qualities[i].Resolution}");
}
Console.WriteLine();
// Read the episode number selected
Console.Write("Enter quality number: ");
int qualityIndex;
while (!int.TryParse(Console.ReadLine() ?? "", out qualityIndex))
{
Console.Clear();
Console.WriteLine("You entered an invalid number");
Console.Write("Enter quality number: ");
}
qualityIndex--;
// Download the stream
var fileName = $@"{Environment.CurrentDirectory}\{animes[animeIndex].Title} - Ep {episodes[episodeIndex].EpisodeNumber}.mp4";
using (var progress = new ConsoleProgress())
await client.DownloadAsync(qualities[qualityIndex], fileName, progress);
Console.WriteLine("Done");
Console.WriteLine($"Video saved to '{fileName}'");
Console.ReadLine();
}
public static async Task Example4()
{
var client = new AnimeClient(AnimeSites.GogoAnime);
var animes = await client.SearchAsync("", SearchFilter.NewSeason);
Console.WriteLine("Animes found: ");
Console.WriteLine();
for (int i = 0; i < animes.Count; i++)
{
Console.WriteLine($"[{i + 1}] {animes[i].Title}");
}
Console.ReadLine();
}
}
}
Example Downloading
Here is an example of using animedl
using System;
using AnimeDl;
using AnimeDl.Scrapers;
namespace AnimeApp
{
class Class1
{
public void DownloadExample(AnimeClient client, Quality quality, string fileName)
{
await client.DownloadAsync(quality, fileName);
}
}
}
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)
- Nager.PublicSuffix (>= 2.3.0)
- Newtonsoft.Json (>= 13.0.1)
-
.NETFramework 4.6.1
- BrotliSharpLib (>= 0.3.3)
- HtmlAgilityPack (>= 1.11.42)
- 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)
- 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)
- 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)
- 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.