npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@dil5han/yts

v1.0.1

Published

<p align="center"> <a href="" rel="YTS"> <img width=150px height=150px src="https://raw.githubusercontent.com/ravindudil5han/yts/main/lib/20230709_134408.jpg" alt="YTS"> </a> </p>

Downloads

6

Readme

YTS Torrent Search

npm version License

A Node.js library for scraping torrent data from YTS.

Installation

You can install the yts library via npm:

npm install @dil5han/yts

Usage

const yts = require('@dil5han/yts');

yts.yts('search', 'page') // yts('movies', '1') Replace the word "movies" with the search you want to search
    .then((data) => {
        if (data === null) {
            console.log('Error: Failed to fetch data from YTS.');

        } else if (data.length === 0) {
            console.log('No search results');

        } else {
            console.log(data);
        }
    })
    .catch((error) => {
        console.log('Error:', error);
    });

API

yts(search, page)

Performs a search on YTS with the given query and returns an array of movie objects.

  • search (string): The search query.
  • page (string, optional): The page number to retrieve. Defaults to '1'.

Returns: Promise<Array<Object>>

Each movie object in the returned array has the following properties:

  • Url (string): The URL of the movie on YTS.
  • Name (string): The name of the movie.
  • Language (string): The language of the movie.
  • Img (string): The URL of the movie's poster image.
  • Release_date (string): The release date of the movie.
  • Gen (string): The genre of the movie.
  • Rating (string): The rating of the movie.
  • Likes (string): The number of likes for the movie.
  • Runtime (string): The runtime of the movie.

Each movie object also contains an array Torrents with the following properties for each torrent:

  • Quality (string): The quality of the torrent.
  • Type (string): The type of the torrent.
  • Size (string): The size of the torrent.
  • Torrent (string): The URL of the torrent file.
  • Magnet (string): The magnet URL of the torrent.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contributing

Contributions are welcome! Please refer to the Contributing Guidelines for more details.

Issues

If you encounter any issues or have suggestions, please open an issue.

Credits

This library is developed and maintained by dilshan.

Disclaimer

This library is intended for educational and personal use only. Please respect the legal rights of content creators and use torrents responsibly.