GithubHelp home page GithubHelp logo

aviaryan / kissanime-batch-downloader Goto Github PK

View Code? Open in Web Editor NEW
134.0 15.0 46.0 1.29 MB

:jp: :tv: KissAnime, KissCartoon and KissAsian batch links generator script

License: Apache License 2.0

JavaScript 92.85% Shell 7.15%
kissanime batch links downloader kissasian kisscartoon animes cartoons tvshows shows

kissanime-batch-downloader's Introduction

KissAnime, KissAsian, KissCartoon batch links generator

Scripts that fetch download links of any series on KissAnime, KissAsian or KissCartoon and gives them to you in the form of a list. Once you have the list; use IDM, DownThemAll, wget or aria2c to download the series.

Before fetching the links, you can choose the starting episode, the ending episode, the resolution preference order for downloads and the output format of links.

Having problems with script? See FAQ. If problem is not solved, please open an issue.

Forked from https://github.com/Vergo777/Kissanime-LinkDownload. That project was outdated and un-maintained so I decided to continue it. So thank you @Vergo777.

Before using the script, read TERMS OF USING.

You need to login into KissXXXX website before using the script.

How to use the script

Go to an anime page on KissAnime (eg http://kissanime.ru/Anime/Haikyuu), then open JavaScript console and run

$.getScript("https://rawgit.com/aviaryan/Kissanime-Batch-Downloader/master/kissanime.js")

For cartoons, go to a cartoon page on KissCartoon (eg http://kisscartoon.se/Cartoon/Shimmer-and-Shine-Season-2), then open JavaScript console and run

$.getScript("https://rawgit.com/aviaryan/Kissanime-Batch-Downloader/master/kisscartoon.js")

For KissAsian, go to a series listing page (eg http://kissasian.com/Drama/My-Bromance-The-Series), then open JavaScript console and run

$.getScript("https://rawgit.com/aviaryan/Kissanime-Batch-Downloader/master/kissasian.js")
// BUG
// getScript may not work on KissAsian. Don't worry, that's not a problem. You will have to manually copy the code. See FAQ below.

Detailed instructions (taking KissAnime)

These instructions are for KissAnime. Similar instructions go for KissCartoon and KissAsian.

  • Login to Kissanime using your account (make one if needed)

  • Go to the main page of the anime you want to download (e.g. Haikyuu)

KissAnime Haikyuu

  • Open JavaScript console from the Developer Options.

JavaScript console

  • Paste the following into the console window and press enter
$.getScript("https://rawgit.com/aviaryan/Kissanime-Batch-Downloader/master/kissanime.js")

Enter script

  • Enter the episode number from which you'd like to start generating download links (e.g. ep 3)

Enter episode number

  • Enter the final episode number till which you'd like to generate download links (e.g. ep 9)

  • Enter your resolution preference. Eg > 720,480,360

  • Enter the links output preference. 0 is for basic list of links (works with any basic download tool), 1 is for list of links with episode names (suitable for wget, aria2c users), 2 is for HTML page with download links (suitable for DownThemAll (Firefox)).

  • Wait till all links are generated.

screen shot 2017-02-09 at 1 50 29 pm

  • Once the process is completed, the file with list of links will be downloaded or opened (depends on the browser).

screen shot 2017-02-09 at 1 51 16 pm

Now you can use any basic download tool to download all the episodes. There are some methods given below. I recommend the DownThemAll method (requires Firefox).

Downloading links through command line

If you entered "0" in output preference, you will get a plain list of links. You can use aria2 to download them at once. It is a cross-platform application available on Mac, Linux and Windows.

aria2c -i file_with_links.txt

You can also use aria2_basic_helper.sh for a better downloading experience.

Better download filenames (command line)

Enter "1" in step 4 of script configuration to output episode links with filenames. These filenames are derived from episode names on KissXXXX website. You can use wget or aria2c to download the list of episodes with proper names. Note that you will have to use aria2_helper.sh or wget_helper.sh for downloading that list.

Working around with Captchas

At times, KissXXXX blocks users from fetching multiple episodes using a Captcha. When this script detects a captcha, it shows a prompt and thereby pauses its execution. Then you will be given a link of the page with the captcha. Go to that link in a new tab and solve the captcha. Once solved, come back to the anime list and click on OK in the prompt to resume the script.

Downloading with DownThemAll

DownThemAll is a Firefox extension. Once you install it in Firefox, use "2" in output preference setting (4th when you start the script) to generate HTML page as output. That will give you a HTML page with direct links to all episodes. Now, open that page in Firefox and right click a blank location. Select "DownThemAll" from the menu to show a dialog with all urls in the page. Select all urls and set the mask as *text*. Then start the download. Now downloading will start with proper filenames.

FAQ

$.getScript(...) doesn't do anything ?

Maybe the script is being blocked. To bypass this, just copy the contents of the script and paste it in the Console. For example, if you had this problem with KissAsian, you take it's script which is https://rawgit.com/aviaryan/Kissanime-Batch-Downloader/master/kissasian.js and open it in a new browser tab. Now you will be able to copy the script code. Just copy it and paste it in the KissAsian console.

Last link in my lists.txt won't download

Try adding an empty line after the last link.

kissanime-batch-downloader's People

Contributors

aviaryan avatar ceesvanegmond avatar grug-son-of-thog avatar vergo777 avatar

Stargazers

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

Watchers

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

kissanime-batch-downloader's Issues

Cant download on kissasian

So i waiting for code to generate link and this error happen

Uncaught ReferenceError: $kissenc is not defined
at eval (eval at success (:95:5), :1:20)
at Object.success (:95:5)
at o (http://kissasian.com/Scripts/jquery17.min.js?v=1:2:14733)
at Object.fireWith [as resolveWith] (http://kissasian.com/Scripts/jquery17.min.js?v=1:2:15502)
at w (http://kissasian.com/Scripts/jquery17.min.js?v=1:4:12472)
at d (http://kissasian.com/Scripts/jquery17.min.js?v=1:4:18318)
at Object.send (http://kissasian.com/Scripts/jquery17.min.js?v=1:4:18357)
at Function.ajax (http://kissasian.com/Scripts/jquery17.min.js?v=1:4:15044)
at :82:9
(anonymous) @ VM309:1
success @ VM302:95
o @ jquery17.min.js?v=1:2
fireWith @ jquery17.min.js?v=1:2
w @ jquery17.min.js?v=1:4
d @ jquery17.min.js?v=1:4
send @ jquery17.min.js?v=1:4
ajax @ jquery17.min.js?v=1:4
(anonymous) @ VM302:82

can you help me?(im total newbie on this)

Empty links

When I tried to download it only gives empty links. If you have time can you fix it? Thank you so much!

KissAnime problems reports

This issue will contain logs of problems encountered with the KissAnime website. These problems will be cause due to changes in the website.


10-2-17 --- Captcha has been added on the KissAnime website which doesn't allow quick successive opening on episode pages. So the script fails to fetch more than N (6 to 8) number of links in one go.

UPDATE: 10-2-17 14:34 IST --- Captcha has been removed now. Everything is working.

support

can u please add a support for selecting the server from which i would like to download. (ex - opencloud)

empty links file

Hi;

I tried the script today on different shows, with different resolutions, and it shows that it's collecting the links, and gives me an empty links.txt file. I tried this on both Chrome and Safari on MacOS, on domains http://kisscartoon.se/ & http://kissanime.ru/

any help please?

here is the log:


Starting Kissanime Batch Downloader script...
kissanime.js?_=1487725069049:51 Starting to fetch links..
kissanime.js?_=1487725069049:54 Fetching listing 1 [Teenage Mutant Ninja Turtles (2012) Season 4 Episode 1]
jquery17.min.js:4 Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
send @ jquery17.min.js:4
ajax @ jquery17.min.js:4
(anonymous) @ kissanime.js?_=1487725069049:55
kissanime.js?_=1487725069049:54 Fetching listing 2 [Teenage Mutant Ninja Turtles (2012) Season 4 Episode 2]
kissanime.js?_=1487725069049:54 Fetching listing 3 [Teenage Mutant Ninja Turtles (2012) Season 4 Episode 3]
kissanime.js?_=1487725069049:54 Fetching listing 4 [Teenage Mutant Ninja Turtles (2012) Season 4 Episode 4]
kissanime.js?_=1487725069049:54 Fetching listing 5 [Teenage Mutant Ninja Turtles (2012) Season 4 Episode 5]
kissanime.js?_=1487725069049:54 Fetching listing 6 [Teenage Mutant Ninja Turtles (2012) Season 4 Episode 6]
kissanime.js?_=1487725069049:54 Fetching listing 7 [Teenage Mutant Ninja Turtles (2012) Season 4 Episode 7]
kissanime.js?_=1487725069049:54 Fetching listing 8 [Teenage Mutant Ninja Turtles (2012) Season 4 Episode 8]
kissanime.js?_=1487725069049:69 Captcha detected at http://kisscartoon.se/Cartoon/Teenage-Mutant-Ninja-Turtles-2012-Season-4/Episode-8?id=68444
kissanime.js?_=1487725069049:54 Fetching listing 9 [Teenage Mutant Ninja Turtles (2012) Season 4 Episode 9]
kissanime.js?_=1487725069049:54 Fetching listing 10 [Teenage Mutant Ninja Turtles (2012) Season 4 Episode 10]
kissanime.js?_=1487725069049:115 Opening list of links

KissCartoon URL

Hi! Please change the html of KissCartoon.se to KissCartoon.es

Script for other kiss websites

Can you make one for other kiss websites? Specially kissasian? I used your script for kissasian but it only gives me empty links :( And thank you for making a batch downloader!

Request for an apk for this app

Hii there I came across your called kissanime , kissasian downloader can u pls make an apk of kissasian downloader where the downloaded videos will stay at the app only instead of in the internal memory of phone?I would like to hear from u soon

Add support for link(n)

Hello there @aviaryan
This is a query regarding link.txt generated to be used aria2_helper.sh...
for instance someone want to download 2 seasons then there will be 2 link.txt generated one being link.txt and 2nd one being link(2).txt (Windows auto file rename convention)...my question is (I have aria 2 on my environment variable as well as associated .sh file corectly with bash{using cygwin} ): will the helper script take link(n).txt [where n is positive integer] as input?
Best Regards

Captcha Loop

I get into a captcha loop whenever I try to download something, please fix this.

IDM download name detection support

Hello there @aviaryan
Its a great pleasure to see such a wonderful script being developed. I was wondering if if there was any way for IDM >import list of links to detect episode name/title instead of videoplayback(n) where n is any number..... If that's not possible with IDM is it possible with aria2 ?
Thanks

Captcha popup blocks the ability to open tabs on Chrome.

I just want to say this script is awesome! I've been getting the video URL manually then downloading with aria2c for a while now, but this script makes it so much easier!

But the problem I have found is that when using Chrome the popup containing the captcha URL blocks the ability to open a new tab. I am also unable to even open a new Chrome window, I can open it but it will not accept any input. This make me unable to do the captcha to allow the script advance to the next video. It does work fine in Firefox though.

This is on a Linux machine so it's possible that it works fine on windows, but I have not tested that theory. I know that this is just a quirk with the way Chrome handles the java-script alert box, and isn't anything wrong with your code.

I do have a few ideas on how this issue could be fixed:

  1. We could use jquery-confirm to display the URL (it works great and is really easy to use). This should not block the ability to open a new tab.

  2. We could send the URL straight to the clipboard with clipboardjs and have the user open a new tab then paste the URL manually. We would still need to notify the user that they need to do the captcha and wait until they are finished.

  3. We could automatically open a new tab and have it navigate to the captcha URL. (I like this one most of all). I think we could use "readline()" and have the user input something in the console window to signal that the captcha has been completed, but this is not the most user friendly solution.

Anyway, what do you think? Or am I the only one with this problem?

I could probably fix this myself and do a pull request but I'm not sure when I would be able to get around to it.

aksing to enter Captcha

  1. it is asking to solve the captcha after retriving every link. i have to copy the url, open it in another tab, solve it and return to the main page to continue the script. is there anyway to solve this?
  2. also when i go to the solving captcha tab, apart from captcha, there is a skip button in the below where i can skip the captcha and choose another server (hydrax server).

Screenshot (13)

Screenshot (14)

KissAnime shifting to Openload

Captchas are annoying. Possible solutions provided.

So, at the moment Kissanime.ru has a Captcha system that makes it absolute HELL to set up a Bulk Download for an entire series at the moment. This could be bypassed by having the script "solve" every Captcha by skipping it in favor of the RapidVideo host.

There is an alternative website which seems to have the new episodes but an old layout and NO Captchas. This alternative is Kissanime.ac. I suggest setting the Script up for this one because any IDM download from this site is SUPER fast!
kissanimeexample

Troubles with KissCartoon

I'm having troubles with using the script on KissCartoon.

The specific page I'm trying to use it on is: https://kisscartoon.is/Cartoon/My-Gym-Partner-s-a-Monkey/

For the first question, "Enter episode (listing) number you want to start from", if I just leave it as "1", it says: "Episode number entered must be greater than 0 and lesser than total number of eps"

If I put something like "Season 01 Episode 01", it'll work but it will print out a blank list of links.

Am I doing something wrong?

captcha problem

i have selected my anime and completed all the steps but i is asking for captcha after every single episode what should i do

Script returns empty list of links

here's what happened:
tried downloading one piece episodes from kissanime.ru on GoogleChrome by running your script: $.getScript("https://rawgit.com/aviaryan/Kissanime-Batch-Downloader/master/kissanime.js"), it resulted in empty list of links.

the possible error was related to XMLHttpRequest as shown below.. maybe you can relate, so attaching a screenshot below:
capture

any possible fix? thanks for your work.

$kissenc not defined

Had an error appeared today. I actually managed to make the script work yesterday on firefox. Idk what happened after I tried today. Here's the log.

Loading scripts ...
/Scripts/common.js
/Scripts/aes.js
/Scripts/sha256.min.js
/Scripts/kissenc.min.js?v=2
Starting Kissasian Batch Downloader script...
Starting to fetch links..
Fetching listing 1 [Running Man (Game-Show) Episode 1]
ReferenceError: $kissenc is not defined [Learn More]

Tried it on chrome as well no luck. Also with chrome yesterday it was giving me blank text files. I am logged in with an account on kissasian. Please do help thank you :)

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.