Skip to main content

This program can find the direct url of a video or subtitle file from kukaj.io.

Project description

KukajTo Downloader

KukajTo Downloader - get a direct url to a video or subtitle file

This program can find the direct url of a video or subtitle file from kukaj.to, that can be opened in the VLC media player.

Installation

  • Google Chrome (a reasonable version) must be installed in order to use web gui of the downloader.
  • Windows
  • Python and cmd use
    • Install from pip package pip install kukajto-downloader

How to use

  • Run the program or type kukajto-downloader

  • Select the video and click Analyze

  • Open VLC, then navigate to MediaOpen Network Stream or press Ctrl+N

  • Paste video url into Please enter a network URL input

  • For those who want to add subtitles

    • Check Show more options
    • Check Play another media
    • Paste subtitles into Extra media input
  • Click Play

Supported sources

Kukajto is currently using following source:

Shortcut Domain Support Play* Format
TAP streamtape.com mp4
MIX mixdrop.co mp4
MON filemoon.sx m3u8
DOD - - - -
NET - - - -

*Can be analyzed without playing video first.

Preview

preview

Using in code

You can use the library in your code:

from selenium import webdriver

from kukajto_downloader import Kukaj

driver = webdriver.Chrome()

# mixdrop source, english, czech subtitles
driver.get("https://film.kukaj.io/matrix/1?subs=0&lng=EN")

# analyze kukaj site
result = Kukaj(driver).get()

# prints the url of video and subtitles
print(result.video)
print(result.subtitles)

driver.quit()

Custom scraper can be created too. This is an example how MixdropScraper is implemented:

from selenium import webdriver

from src.kukajto_downloader import Kukaj
from src.kukajto_downloader import Scraper, UnsupportedStructureError

driver = webdriver.Chrome()

class MixdropScraper:
    """
    Scraper class must have following methods:
        __init__
            Arguments:
                driver - selenium webdriver instance
        get
            Method that extracts url from the source

            Arguments:
                iframe - selenium iframe object of source

            Returns:
                url - An url that will be displayed

    """
    def __init__(self, driver) -> None:
        self.driver = driver

    def get(self) -> str: # required method
        url = self.driver.execute_script("return MDCore.wurl")

        if not url:
            raise UnsupportedStructureError

        return url

# mixdrop source, english, czech subtitles
driver.get("https://film.kukaj.io/matrix/3?subs=0&lng=EN")

# create scraper instance
scraper = Scraper(driver)

# attach new scraper
scraper.attach("mixdrop.co", MixdropScraper)

# analyze kukaj site
result = Kukaj(driver).get(scraper)

# prints the url of video and subtitles
print(result.video)

Disclaimer

FOR EDUCATIONAL AND INFORMATIONAL PURPOSES ONLY.

The information provided in or through this website is for educational and informational purposes only and solely as a self-help tool for your own use.

THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. YOU MAY USE THIS SOFTWARE AT YOUR OWN RISK. THE USE IS COMPLETE RESPONSIBILITY OF THE END-USER. THE DEVELOPERS ASSUME NO LIABILITY AND ARE NOT RESPONSIBLE FOR ANY MISUSE OR DAMAGE CAUSED BY THIS PROGRAM.

License

This program is released under MIT License.

Credits

In my project I used following icons from other sources:

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

kukajto-downloader-1.2.2.tar.gz (474.9 kB view details)

Uploaded Source

Built Distribution

kukajto_downloader-1.2.2-py3-none-any.whl (474.0 kB view details)

Uploaded Python 3

File details

Details for the file kukajto-downloader-1.2.2.tar.gz.

File metadata

  • Download URL: kukajto-downloader-1.2.2.tar.gz
  • Upload date:
  • Size: 474.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for kukajto-downloader-1.2.2.tar.gz
Algorithm Hash digest
SHA256 7aafc12099569e697d640ccaa767ab1b2a3b94f1358f49127846627e895a50b1
MD5 6815783e4472567a2d7e54a647a6090a
BLAKE2b-256 7217c184da14e0b063ede4f02fffdecca4d124ebe2c4a5ef13076bf665bc38c4

See more details on using hashes here.

File details

Details for the file kukajto_downloader-1.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for kukajto_downloader-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3fdfd1fc27d268b31b740879c7e3ca77f1fd70dc47f8fd5f8387e41ee70bfea8
MD5 b4e4e558e49f2336e945478c71b216d4
BLAKE2b-256 f9ba41744928e9692b735a7aed323c4ea20ea566b26bf0164847252e233e2645

See more details on using hashes here.

Supported by

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