Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
kat-wrapper
Advanced tools
KAT (Kickass) api wrapper with mirror fallback and advanced search parameters.
KAT (Kickass Torrent) api wrapper with mirror fallback and advanced search parameters.
var kat = require('kat-wrapper');
kat.search('test').then(function (data) {
console.log(data);
}).catch(function (error) {
console.log(error);
});
kat.search({
query: 'Charlie Chaplin',
category: 'movies',
min_seeds: '10',
uploader: 'ettv',
sort_by: 'seeders',
order: 'desc',
verified: 1,
language: 'en'
}).then(function (data) {
console.log(data);
}).catch(function (error) {
console.log(error);
});
Output example:
page: 2
response_time: 743
results: Array[25]
total_pages: 824
total_results: 20578
Use example:
We'll display the magnet link for the most seeded 'Charlie Chaplin' movie.
var kat = require('kat-wrapper');
kat.search({
query: 'Charlie Chaplin',
sort_by: 'seeders'
}).then(function (response) {
console.log(response.results[0].magnet);
}).catch(function (error) {
console.log('an error occured');
});
KAT search requires at least 1 of the following queries: query, category, min_seeds, uploader, safety_filter, verified, language, age
Every other parameter is optionnal.
--
query
: search terms.search('string')
if you don't use any other parameter.category
: possible values: tv|movies|anime|applications|books|games|music|xxx|other * Subcategories can also be used in the category
parameter, but I won't list them.
min_seeds
: a number, integer. Can be contained in a string.
min_seeds
people.uploader
: a KickassTorrent's username.uploader
.imdb
: IMDB id - movies onlytvrage
: TVRage id - tv only
sort_by
: possible values: seeders|leechers|time_add|files_count
order
: possible values: asc|desc
safety_filter
: 0 or 1. (1=true, 0=false)
verified
: 0 or 1 (1=true, 0=false)language
: langcode or language ID (see below) - only for Movie or TVen
or 2
.age
: possible values: hour|24h|week|month|yearpage
: integer.Regular HTTP request errors.
Regular Javascript errors.
Missing a mandatory parameter
: you made an error somewhere.
No data
: this happens when the server sent back a statusCode > 400 or if the something went wrong with the request, but the server answered.
No results
: 0 results found. Catch this error to warn your user there were no results for its request, or to know when you reached last page.
About the language parameter:
FAQs
KAT (Kickass) api wrapper with mirror fallback and advanced search parameters.
The npm package kat-wrapper receives a total of 2 weekly downloads. As such, kat-wrapper popularity was classified as not popular.
We found that kat-wrapper demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.