Giter Club home page Giter Club logo

kickassanime-downloader's Introduction

Kickassanime Downloader

Not working at the moment

A nice and fast asynchronous anime downloader, streamer and more for kickassanime.

Here's a demo of this tool.

Index:

Update :

  • Check for updates by running the alias or cli.py and select "Fetch Latest" to check if a newer version is available.
  1. If you used git to clone the repository then running git pull will do the trick.

  2. If you downloaded the repository as a zip file then you need to download the repository again and replace all the files except the Config folder

  3. You would need to check if there are any changes to the .eg.json files in the Config folder (there may be some breaking changes) and change your .json files in the Config folder accordingly.

Installation :

The setup is a little tedious at the moment, but I might make a nice installable package using pip. But right now these are the installation steps:

  1. Install python 3 with python and pip on path.

  2. Clone this repository using git clone https://github.com/KorigamiK/kickassanime-downloader or download and extract this repository to a directory. For example: ~/Documents/kickassanime-downloader.

  3. Open terminal/command prompt and navigate to the directory using: cd /home/origami/Documents/kickassanime-downloader.

  4. Run pip install -r requirements.txt

  5. [Optional] if you are on Linux also run pip install SelectMenu and pip install uvloop to get the nice looking command line menu with blazing fast performance!

  6. Navigate to your download directory and navigate to the Config folder (~/Documents/kickassanime-downloader/Config for example).

  7. Rename all the .eg.json and remove the .eg from the file name. Open each one of them and adjust the configurations as you want. Refer to Config section.

  8. Set up the command line aliases from the wiki or run the command line interface directly by running python cli.py.

  9. You may need to download tools like MPV or VLC and add them to your path to stream the shows. This website shows how to add VLC to path on Windows.

  10. Now profit.

To set up the command alias:

  1. For windows

  2. For Linux/Mac

Config :

  1. The quality of downloads from servers can be adjusted in the config.json or from example ~/Documents/kickassanime-downloader/Config/config.json

  2. The numbers for each of the servers refer to the qualities in the order in which they appear on the website.

  3. For example, for KICKASSANIMEX the numbers would refer to the qualities like this:

    qualities

Usage :

  1. Run the alias with no commands/arguments or just python cli.py to get the menu of all the actions you have.
$ kaa
What would you like? (Use arrow keys)
 > Play Episode
   Search And Download
   Autoupdate Library
   Fetch Latest
   Check For Updates
   See Config
  1. kaa update or python cli.py update → auto updates library

  2. kaa download or python cli.py download → starts menu to download a series

  3. kaa latest or python cli.py latest → Shows the latest updates on the website

  4. Run the alias with commands to stream any anime that you want. kaa --help or python cli.py --help for list of all the commands.

  5. Here's the output of the above command:

$ kaa -h
usage: play.py [-h] [--list] [--ep EP] [--url URL] [--opt OPT] [--ext]
               [--stop] [--encode] [--custom_server [CUSTOM_SERVER]]
               [name [name ...]]

Play anime directly

commands:
    update      Autoupdate the library by fetching the latest episodes form to_update.json
    download    Run the download menu to download a range of episodes
    latest      Prints the latest updates on the website
    check       Checks for any available updates for download


positional arguments:
  name                  Name of the anime to search

optional arguments:
  -h, --help            show this help message and exit
  --list, -L            Optional switch to list available player servers (not
                        ext) with their index
  --ep EP, -e EP        Episode number. Default is the latest episode.
  --url URL, -u URL     Optional kickass anime url
  --opt OPT, -o OPT     Optional way to select search result number.
  --ext                 Optional switch to play only from ext servers (its
                        faster if it works). Needs no arguments
  --stop, -s            Optional switch to stop the script after searching
                        without playing anything. Will also display the url of
                        the anime.
  --encode              Optional switch to print ffmpeg command to encode the
                        stream
  --custom_server [CUSTOM_SERVER], -c [CUSTOM_SERVER]
                        Name of the player/server you want or the INDEX number
                        in the watch_config priority dictionary. Overrides the
                        current priority.

FAQ :

If you have any questions about errors or installation you can check the issues page and read the already closed issues. I have answered most of the problems that you might be facing.

You are welcome to make an issue for any bug or error or feature that you might need.

If you encounter any problems due to repeated requests and cloudflare protection, wait for some time and then run the script again.

Some usage examples:

  1. Auto update your ongoing series for new episodes autoupdate

  2. Play any episode of any show play episode

  3. Download a range of episodes of any show search and download

Make sure to correctly create the config files or remove the .eg from the file names in the config folder.

kickassanime-downloader's People

Contributors

korigamik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

kickassanime-downloader's Issues

Issue downloading anime on Ubuntu

So I was trying to download Vivy Flourite Eye's Song EP 10 and I got this error:

[vivy fluorite eyes song ep_10.mp4] stderr: bash: -c: line 0: unexpected EOF while looking for matching ''

[vivy fluorite eyes song ep_10.mp4] stderr: bash: -c: line 1: syntax error: unexpected end of file

I was wondering if I did something wrong here

can't download

Hi, I've been having trouble in downloading an anime because whenever I pick one and start downloading it gets an error. Its like this:

Selectmenu not installed, using basic menu layout.
What would you like?
0 Play Episode
1 Search And Download
2 Autoupdate Library
3 Fetch Latest
4 Check For Updates
5 See Config

Enter choice number: 1
Search And Download
Enter anime name: yuragi
0 Yuragi-sou no Yuuna-san
1 Yuragi-sou no Yuuna-san OVA (Uncensored)
2 Yuragi-sou no Yuuna-san (Uncensored)
Enter anime number: 1
Yuragi-sou no Yuuna-san OVA (Uncensored)
Skip episode numbers to default to first or latest episode
Enter Episode to start from: 1
Enter Episode to end from: 4
yuragi sou no yuuna san ova

download now y/n?: y
No downloads found
Exception ignored in: <function _ProactorBasePipeTransport.del at 0x000001C616A2C310>
Traceback (most recent call last):
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\asyncio\proactor_events.py", line 116, in del
self.close()
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\asyncio\proactor_events.py", line 108, in close
self._loop.call_soon(self._call_connection_lost, None)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 745, in call_soon
self._check_closed()
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 510, in _check_closed
raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
Exception ignored in: <function _ProactorBasePipeTransport.del at 0x000001C616A2C310>
Traceback (most recent call last):
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\asyncio\proactor_events.py", line 116, in del
self.close()
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\asyncio\proactor_events.py", line 108, in close
self._loop.call_soon(self._call_connection_lost, None)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 745, in call_soon
self._check_closed()
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 510, in _check_closed
raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed

'No such file or directory' error

Hi, when I try to download any anime I get error 'No such file or directory'.

image

I've tried editing the download folder and it should be okay.
Also even when I change server priorities it always tries to download from beststremo.

This issue might be caused by my bad installation or set up, I've downloaded the tool today.

It does not follow known pattern, please make an issue on github.

Though the playing feature works fine, the downloading feature gives me this error.

~/c/kickassanime-downloader (master)> python3 cli.py

Selectmenu not installed, using basic menu layout.
What would you like?
0 Play Episode
1 Search And Download
2 Autoupdate Library
3 Fetch Latest
4 Check For Updates
5 See Config

Enter choice number: 1
Search And Download
Enter anime name: jojo
0 JoJo no Kimyou na Bouken: Diamond wa Kudakenai
1 JoJo no Kimyou na Bouken: Stardust Crusaders
2 JoJo no Kimyou na Bouken: Stardust Crusaders 2nd Season
3 JoJo no Kimyou na Bouken (TV)
4 JoJo's Bizarre Adventure (2000) (Dub)
5 JoJo's Bizarre Adventure (2012) (Dub)
6 JoJo's Bizarre Adventure (Dub)
7 JoJo no Kimyou na Bouken: Ougon no Kaze
8 JoJo no Kimyou na Bouken: Diamond wa Kudakenai (Dub)
9 JoJo no Kimyou na Bouken: Ougon no Kaze (Dub)
Enter anime number: 9
JoJo no Kimyou na Bouken: Ougon no Kaze (Dub)
Skip episode numbers to default to first or latest episode
Enter Episode to start from: 1
Enter Episode to end from: 1
jojo no kimyou na bouken ougon no kaze dub
BETA-SERVER
https://beststremo.xyz/Beta-Server/d.php?link=lMPAFDFNWf9Y34GaiuH5eacCW@ERWpwwGrhbm10ACUF9yAfGi9C11xUBUZZb4kwUxhTKBJsFGb7kuY4N9bjBiR2kFECNjJ@9U6sDYdfWxJsP
Bad serverlink https://beststremo.xyz/Beta-Server/d.php?link=lMPAFDFNWf9Y34GaiuH5eacCW@ERWpwwGrhbm10ACUF9yAfGi9C11xUBUZZb4kwUxhTKBJsFGb7kuY4N9bjBiR2kFECNjJ@9U6sDYdfWxJsP. It does not follow known pattern, please make an issue on github.
Cannot download jojo no kimyou na bouken ougon no kaze dub episode 01

download now y/n?: y
No downloads found

Issue with downloading an anime

Hi me again! I was trying to download pretty boy detective club from episode 8 until 12. It just said:

Getting episode 12
Getting episode 11
Getting episode 10
Getting episode 09
Getting episode 08

and then it just quit. So I thought what if I tried one episode like episode 8 and so it gave me a link and quit because the quality I provided was out of range. I clicked through the link and it took me to a blank page.

Here is the full output from the program

Enter choice number: 1

Search And Download
Enter anime name: pretty boy
0 Pretty Boy Detective Club
Enter anime number: 0
Pretty Boy Detective Club
Skip episode numbers to default to first or latest episode
Enter Episode to start from: 8
Enter Episode to end from: 8
pretty boy detective club
Getting episode 08
Starting episode 08
KICKASSANIMEX
https://kaa-play.me/KickAssAnimeX/d.php?link=lMPAFDFNWf9W25yVn@LhO7oeF@wBSox4WqtPzgBIVgE8yAbIltGw1UFPCtgItlg=
Enter quality number: 0
Traceback (most recent call last):
File ".\cli.py", line 88, in
asyncio.get_event_loop().run_until_complete(choicesresult)
File "C:\Users\mglas\AppData\Local\Programs\Python\Python37\lib\asyncio\base_events.py", line 587, in run_until_complete
return future.result()
download_location=download_location,
File "C:\Users\mglas\Documents\GitHub\kickassanime-downloader\kickassanime_scraper.py", line 466, in automate_scraping
links_and_names_and_headers = await asyncio.gather(*download_tasks)
File "C:\Users\mglas\Documents\GitHub\kickassanime-downloader\kickassanime_scraper.py", line 225, in get_download
await a.get_final_links(final[1])
File "C:\Users\mglas\Documents\GitHub\kickassanime-downloader\utilities\pace_scraper.py", line 246, in get_final_links
await scraper._magenta(self, link)
File "C:\Users\mglas\Documents\GitHub\kickassanime-downloader\utilities\pace_scraper.py", line 225, in _magenta
self.final_dow_urls += [link_and_quality[self.quality][0]]
IndexError: list index out of range

I wanted to let you know about this. Also if this looks weird I'm sorry

instructions?

any documentation? i tried using to_update.json to update the anime listed, Im on windows so cant get into the KAA promt.

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.