oureveryday / py-kraken-aria2

A python module to download files from KrakenFiles. Modded to use with aria2.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

py-kraken

A python module to download files from KrakenFiles

Install

pip install py-kraken

Mod

  • Modded to download using aria2 with command line command_line_aria2.py. (Aria2 RPC config is in pykarken\pyaria2.py)

Command Line Use

kraken-download https://krakenfiles.com/view/dbe8ee9c34/file.html

Module Use

from pykraken.kraken import Kraken

kraken_link = "https://krakenfiles.com/view/dbe8ee9c34/file.html"

# Download the file to local directory
k = Kraken()
k.download_file(kraken_link)

# Convert the kraken link to a download link
download_link = k.get_download_link(kraken_link)

print(download_link)

# 'https://krakenfiles.com/force-download/YXNkejUzNERTZmRzU0RGY3YzMmRiZThlZTljMzR8MTYxNTA3MDkyNA?fileHash=dbe8ee9c34'

About

A python module to download files from KrakenFiles. Modded to use with aria2.

License:MIT License


Languages

Language:Python 100.0%