Skip to main content

Kickasstorrents search lib with python3.5

Project description

Katcr

Easy-as-it-gets python3.5 library to search magnets in kickasstorrents (kat.cr)

Uses aiohttp to do paralell searches on kickasstorrents

It also exports a nice text user interface:

Usage:
    katcr --search <SEARCH_TERM> --pages <PAGES_NUM>

Options:
    --search=<SEARCH_TERM>   Search term(s)
    --pages=<PAGES_NUM>      Number of pages to lookup

Examples:
    katcr --search "Search terms" --pages 3
    katcr --search "Search terms" --pages 1
    katcr --pages 1

Usage

As a library, you can import the main coroutine with:

from katcr import search_magnets

loop = asyncio.get_event_loop()
task = asyncio.ensure_future(search_magnets("what", 1, loop))
loop.run_until_complete(task)

for magnet in task.result():
    yield magnet

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

katcr-0.0.3.dev1.tar.gz (2.6 kB view hashes)

Uploaded Source

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