Skip to main content

A command-line video editing tool built in Python for cutting, speeding up, and applying a boomerang effect to MP4 videos.

Project description

AnimeDlp

A clean and robust command-line downloader for specific anime video sites

AnimeDlp allows you to easily extract direct video URLs or download episodes from supported anime video sites. It handles protection mechanisms and special cookie requirements gracefully, powered by yt-dlp.

Python Version License

Features

  • Support for popular anime video sites (including API-based extraction)
  • Automatically detects multi-episode series
  • Extract video URLs only (--extract) or download directly
  • Built-in handling for Cloudflare protection (cf_clearance)
  • Safe cookie extraction to prevent common session conflicts
  • Fast downloads using yt-dlp with concurrent fragment support
  • Clean output with optional verbose debug mode

Installation

Install via pip:

pip3 install AnimeDlp

Required Dependencies

If you install by git clone, you need to add the following dependencies.

pip3 install requests beautifulsoup4 lxml yt-dlp ChronicleLogger

Usage

Basic Command

anime-dlp "https://your-anime-video-site-url-here"

Options

Usage: anime-dlp [OPTIONS] URL

A clean downloader for supported anime video sites

Positional Arguments:
  url                   URL from a supported anime video site

Optional Arguments:
  -h, --help            show this help message and exit
  -v, --verbose         Enable debug output
  -x, --extract         Extract URLs only (no download)
  -cf, --cloudflare CF  cf_clearance cookie value (for Cloudflare protection)
  -ua, --user-agent UA  Custom User-Agent string

Examples

1. Download episodes:

anime-dlp "https://example-anime-site.com/your-series-url"

2. Extract direct video URLs only:

anime-dlp "https://example-anime-site.com/..." --extract

3. Bypass Cloudflare protection:

anime-dlp "https://example-anime-site.com/..." --cloudflare "your_cf_clearance_value_here" --verbose

4. Custom User-Agent:

anime-dlp "https://example-anime-site.com/..." --user-agent "Mozilla/5.0 ..."

How It Works

  • Parses episode information from the page
  • Calls internal APIs when needed and safely handles required playback cookies
  • Automatically finds and sorts episodes in series pages
  • Uses yt-dlp for reliable, high-speed downloading

Troubleshooting

  • Cloudflare block (403): Get a fresh cf_clearance cookie from your browser and use the --cloudflare flag.
  • Cookie-related errors: The tool includes a robust fix for duplicate cookie name issues.
  • No video found: Run with --verbose to see detailed logs.

Requirements

  • Python 3.8 or higher
  • requests, beautifulsoup4, lxml, yt-dlp, and ChronicleLogger

Project Links

Changelog

v1.0.0 (Current)

  • Initial public release
  • Robust cookie handling implemented
  • Support for major anime video sites
  • CLI command anime-dlp added

License

This project is licensed under the MIT License.

Disclaimer

This tool is intended for personal, educational use only. Please respect the terms of service of the websites you use it with. Downloading copyrighted material may be illegal in your jurisdiction.


Made for anime fans who want a simple downloading experience.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

animedlp-1.0.1.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

animedlp-1.0.1-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file animedlp-1.0.1.tar.gz.

File metadata

  • Download URL: animedlp-1.0.1.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for animedlp-1.0.1.tar.gz
Algorithm Hash digest
SHA256 d8dee6eed347a61e711b58043f02145c6458a18e9c51ec51b1b924bdb2e6bd4b
MD5 1bbd4164ebb723082e2502224ef05f8c
BLAKE2b-256 1acc113679d9c20269d3b53a53bae90c67c6c749d991ad990a8cbaf555a9b214

See more details on using hashes here.

File details

Details for the file animedlp-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: animedlp-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for animedlp-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c63c21e607a22aaa03945169302b1337d67d5165c7cc0db6bdaabaf559fcd574
MD5 4a2bcb5a471f927e3a5619feb8ad6b1f
BLAKE2b-256 b4c79c56a6ed2f705beafc579851c4cca87f54f5ccb02b2609963fa8541423e3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page