Coder Social home page Coder Social logo

ani-cli's Introduction




A cli to browse and watch anime (alone AND with friends). This tool scrapes the site animixplay.

Showcase

ani-cli.mp4

Table of Contents

Fixing errors

If you encounter "Video url not found" or any breaking issue, then make sure you are on latest version by typing sudo ani-cli -U to update on Linux, Mac and Android. On Windows, run gitbash as administrator then there type ani-cli -U. If after this the issue persists then open an issue.

If after updating you get a similar error: "/usr/bin/ani-cli: line 470: (...)/player_mpv: No such file or directory" then uninstall and reinstall ani-cli with the installation instructions provided below.

New in v3

We now scrape animixplay instead of gogoanime, which allows for faster link fetching as well as getting new 
releases sooner.

New arguments:
-f use fzf for anime selection
-r [1-3] select provider to scrape first
-x print all video links from all providers to stdout (for debugging purpose)

To see a list with all the arguments, use the -h or --help argument

For more info on providers, please refer to this discussion

Install

IMPORTANT: Please uninstall ani-cli before proceeding.

ani-cli V3.3 has breaking changes and is incompatible with previous versions install location. Please uninstall before proceeding.

Native packages

Packaging status

Native packages have a more robust update cycle, but sometimes they are slow to upgrade. If the one for your platform is up-to-date we suggest going with it.

Linux

Install dependencies (See below)

sudo rm -rf "/usr/local/share/ani-cli" "/usr/local/bin/ani-cli" "/usr/local/bin/UI" /usr/local/bin/player_* #If some of these aren't found, it's not a problem
git clone "https://github.com/pystardust/ani-cli.git" && cd ./ani-cli
sudo cp ./ani-cli /usr/local/bin
cd .. && rm -rf "./ani-cli"

Also note that mpv installed through flatpak is not compatible

MacOS

Install dependencies (See below)

Install HomeBrew if not installed.

rm -rf "$(brew --prefix)/share/ani-cli" "$(brew --prefix)/bin/ani-cli" "$(brew --prefix)/bin/UI" "$(brew --prefix)"/bin/player_* #If some of these aren't found, it's not a problem
git clone "https://github.com/pystardust/ani-cli.git" && cd ./ani-cli
cp ./ani-cli "$(brew --prefix)"/bin 
cd .. && rm -rf ./ani-cli

To install (with Homebrew) the dependencies required on Mac OS, you can run:

brew install curl grep axel [email protected] ffmpeg git && \
brew install --cask iina

Why iina and not mpv? Drop-in replacement for mpv for MacOS. Integrates well with OSX UI. Excellent support for M1. Open Source.

Windows

Make sure git bash is installed (Install)

Note that the installation instruction below must be done inside Git Bash, not in Command Prompt or Powershell

rm -rf "/usr/local/share/ani-cli" "/usr/local/bin/ani-cli" "/usr/local/bin/UI" /usr/local/bin/player_* #If some of these aren't found, it's not a problem
git clone "https://github.com/pystardust/ani-cli.git" && cd ./ani-cli
cp ./ani-cli /usr/bin
cd .. && rm -rf ./ani-cli

Run ani-cli in Git Bash (Running it in cmd or powershell may or may not work)

Android

Install termux (Guide)

pkg up -y
rm -rf "$PREFIX/share/ani-cli" "$PREFIX/bin/ani-cli" "$PREFIX/bin/UI" "$PREFIX"/local/bin/player_* #If some of these aren't found, it's not a problem
git clone "https://github.com/pystardust/ani-cli.git" && cd ./ani-cli
cp ./ani-cli "$PREFIX"/bin
cd .. && rm -rf ./ani-cli

Note : Vlc Android now works too ;)

You need to add any referrer in mpv by opening mpv (playstore version), going into Settings -> Advanced -> Edit mpv.conf and adding (for example):

referrer="https://animixplay.to/"

Uninstall

  • Linux:
sudo rm "/usr/local/bin/ani-cli"
  • Mac:
rm "$(brew --prefix)/bin/ani-cli"
  • Windows: In Git Bash run (as administrator):
rm "/usr/bin/ani-cli"
  • Android:
rm "$PREFIX/bin/ani-cli"

Dependencies

  • grep
  • sed
  • awk
  • curl
  • openssl
  • mpv - Video Player
  • iina - mpv replacement for MacOS
  • axel - Download manager
  • ffmpeg - m3u8 Downloader
  • fzf (optional)

Homies

  • animdl: Ridiculously efficient, fast and light-weight (supports most sources: animixplay, 9anime...) (Python)
  • anime-helper-shell: A python shell for searching, watching, and downloading anime (Python)
  • anipy-cli: ani-cli rewritten in python (Python)
  • dra-cla: ani-cli equivalent for korean dramas (Shell)
  • kaa.si-cli: Stream anime from kaa.si and sync with anilist (Python)
  • lobster: Life action movies and series fom the terminal (Shell)
  • manga-cli: Read manga in the cli (Shell)
  • mangal: Download & read manga from any source with anilist sync (Go)
  • mov-cli: Watch movies/tv shows in the cli (work in progress) (Python/Shell)
  • saikou: Best android app for anime/manga with anilist integration (Kotlin)
  • tv-cli: Watch live TV in the cli (Shell)

ani-cli's People

Contributors

3ricsonn avatar 71zenith avatar baaboe avatar brahmkshatriya avatar carlosloboxyz avatar coolnsx avatar demonkingswarn avatar derisis13 avatar dink4n avatar drabart avatar duncanjake1 avatar freezboltz avatar frostbyteninja avatar humanman007 avatar justchokingaround avatar kernelwernel avatar kungger-git avatar lukasz825700516 avatar malertach avatar meteor314 avatar nasseef20 avatar ohxxm avatar port19x avatar pystardust avatar rakusan2 avatar raynardgerraldo avatar rendevior avatar sergiocampoy avatar si-ki avatar truboxl avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.