AnimeDl 1.5.2

.NET 5.0 .NET Core 3.0 .NET Standard 2.0 .NET Framework 4.6.1
NuGet\Install-Package AnimeDl -Version 1.5.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
dotnet add package AnimeDl --version 1.5.2
<PackageReference Include="AnimeDl" Version="1.5.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AnimeDl --version 1.5.2
#r "nuget: AnimeDl, 1.5.2"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install AnimeDl as a Cake Addin
#addin nuget:?package=AnimeDl&version=1.5.2

// Install AnimeDl as a Cake Tool
#tool nuget:?package=AnimeDl&version=1.5.2

AnimeDl

Version Downloads <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 WORKING SOME
9Anime 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 static 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 videoServers = client.GetVideoServers(episodes[episodeIndex]);
            };

            client.OnVideoServersLoaded += (s, e) =>
            {
                var videoServers = e.VideoServers;

                for (int i = 0; i < videoServers.Count; i++)
                {
                    Console.WriteLine($"[{i + 1}] {videoServers[i].Name}");
                }

                Console.WriteLine();

                // Read the server index selected
                Console.Write("Enter server index: ");

                int videoServerIndex;

                while (!int.TryParse(Console.ReadLine() ?? "", out videoServerIndex))
                {
                    Console.Clear();
                    Console.WriteLine("You entered an invalid server index");
                    Console.Write("Enter server index: ");
                }

                videoServerIndex--;

                var videos = client.GetVideos(videoServers[videoServerIndex]);
            };

            client.OnVideosLoaded += (s, e) =>
            {
                var videos = e.Videos;

                Console.WriteLine($"Videos found: " + videos.Count);

                for (int i = 0; i < videos.Count; i++)
                {
                    Console.WriteLine($"[{i + 1}] {videos[i].Resolution}");
                }

                Console.WriteLine();

                // Read the episode number selected
                Console.Write("Enter video number: ");

                int videoIndex;

                while (!int.TryParse(Console.ReadLine() ?? "", out videoIndex))
                {
                    Console.Clear();
                    Console.WriteLine("You entered an invalid number");
                    Console.Write("Enter video number: ");
                }

                videoIndex--;

                // Download the stream
                var fileName = $@"{DateTime.Now.Ticks}.mp4";

                using (var progress = new ConsoleProgress())
                    client.Download(videos[videoIndex], 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);

            System.Threading.Thread.Sleep(-1);
        }
    }
}

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); //Working

            // 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 videoServers = client.GetVideoServers(episodes[episodeIndex], forceLoad: true);

            for (int i = 0; i < videoServers.Count; i++)
            {
                Console.WriteLine($"[{i + 1}] {videoServers[i].Name}");
            }

            Console.WriteLine();

            // Read the server index selected
            Console.Write("Enter server index: ");

            int videoServerIndex;

            while (!int.TryParse(Console.ReadLine() ?? "", out videoServerIndex))
            {
                Console.Clear();
                Console.WriteLine("You entered an invalid server index");
                Console.Write("Enter server index: ");
            }

            videoServerIndex--;

            var videos = client.GetVideos(videoServers[videoServerIndex], forceLoad: true);
            Console.WriteLine($"Videos found: " + videos.Count);

            for (int i = 0; i < videos.Count; i++)
            {
                Console.WriteLine($"[{i + 1}] {videos[i].Resolution}");
            }

            Console.WriteLine();

            // Read the episode number selected
            Console.Write("Enter video number: ");

            int videoIndex;

            while (!int.TryParse(Console.ReadLine() ?? "", out videoIndex))
            {
                Console.Clear();
                Console.WriteLine("You entered an invalid number");
                Console.Write("Enter video number: ");
            }

            videoIndex--;

            // Download the stream
            var fileName = $@"{Environment.CurrentDirectory}\{animes[animeIndex].Title} - Ep {episodes[episodeIndex].EpisodeNumber}.mp4";

            using (var progress = new ConsoleProgress())
                await client.DownloadAsync(videos[videoIndex], 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.GogoAnime);

            // Read the anime name
            Console.Write("Enter anime name: ");
            var query = Console.ReadLine() ?? "";

            var animes = await client.SearchAsync(query, selectDub: false);
            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 videoServers = await client.GetVideoServersAsync(episodes[episodeIndex]);

            for (int i = 0; i < videoServers.Count; i++)
            {
                Console.WriteLine($"[{i + 1}] {videoServers[i].Name}");
            }

            Console.WriteLine();

            // Read the server index selected
            Console.Write("Enter server index: ");

            int videoServerIndex;

            while (!int.TryParse(Console.ReadLine() ?? "", out videoServerIndex))
            {
                Console.Clear();
                Console.WriteLine("You entered an invalid server index");
                Console.Write("Enter server index: ");
            }

            videoServerIndex--;

            var videos = await client.GetVideosAsync(videoServers[videoServerIndex]);
            Console.WriteLine($"Videos found: " + videos.Count);

            for (int i = 0; i < videos.Count; i++)
            {
                Console.WriteLine($"[{i + 1}] {videos[i].Resolution}");
            }

            Console.WriteLine();

            // Read the episode number selected
            Console.Write("Enter video number: ");

            int videoIndex;

            while (!int.TryParse(Console.ReadLine() ?? "", out videoIndex))
            {
                Console.Clear();
                Console.WriteLine("You entered an invalid number");
                Console.Write("Enter video number: ");
            }

            videoIndex--;

            // Download the stream
            var fileName = $@"{Environment.CurrentDirectory}\{animes[animeIndex].Title.ReplaceInvalidChars()} - Ep {episodes[episodeIndex].EpisodeNumber}.mp4";

            using (var progress = new ConsoleProgress())
                await client.DownloadAsync(videos[videoIndex], 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, Video video, string fileName)
        {
            await client.DownloadAsync(video, fileName);
        }
    }
}
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.5.2 3 9/21/2022
1.5.1 3 9/21/2022
1.5.0 0 9/21/2022
1.4.1 39 9/17/2022
1.4.0 39 9/16/2022
1.3.9 66 9/7/2022