Anime CLI

Anime CLI

A simple command-line program for downloading animes. Built while learning web scraping - enter an anime name, and it fetches relevant results, allowing you to download your choice. Easy to use and perfect for anime enthusiasts who prefer the terminal.

Overview

Anime CLI is a straightforward command-line tool that simplifies downloading anime episodes directly from your terminal. Built as a learning project to understand web scraping techniques, this tool demonstrates how to interact with web APIs and scrape data programmatically. It provides an interactive interface where users can search for anime, view available episodes, and download their preferred content with just a few commands.

Why I Built This

  • Wanted to learn web scraping and understand how to extract data from websites programmatically.

  • Needed a practical project to apply Node.js skills in a real-world scenario.

  • Wanted to create something useful for anime enthusiasts who prefer command-line tools.

  • Wanted to contribute to the open-source community with a tool others might find useful.

Features

  • Interactive command-line interface for searching and downloading anime

  • Web scraping functionality to fetch anime data and episode information

  • Search functionality that returns relevant anime results based on user input

  • Episode selection and download capabilities

  • Simple installation process with npm

  • Terminal-based workflow that's fast and efficient

  • Supports multiple video quality options

  • Easy-to-follow instructions and user-friendly prompts

Tech Stack

Tools & Services

Node.jsPuppeteerAxios

Challenges & Solutions

Challenge: Understanding web scraping techniques and handling different website structures

Used Node.js library called puppeteer for web scraping and browser inspection tool to extract anime titles, episodes, and download links

Challenge: Handling network requests and managing download processes

Used Axios streams with proper error handling, retries, progress tracking, and controlled resource management.

Impact & Achievements

  • first CLI application I built

  • Created a functional tool that solves a real problem for anime enthusiasts

  • Open-sourced the project and received positive feedback from users who found it useful

Future Plans

  • None. Because this is illegal and I don't have time to maintain it or deal with the legal issues. I purely built this for fun and to learn web scraping.