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

toon-scraper-package

v1.2.2

Published

Scraper for toonstream website, hindi anime website

Downloads

30

Readme

Toon Scraper Package

Toon Scraper Package is an npm package that serves as a comprehensive API wrapper for accessing information about various anime series and movies in hindi. It fetches info from the website https://toonstream.day/.

Installation

To install the package, use npm:

npm install toon-scraper-package

Features

The package provides the following features:

Home

The Home class provides methods to retrieve information about the latest series, latest movies, random series, random movies, and searching by character.

Latest Content:

const ToonScraper = require('toon-scraper-package');

// Latest series
const latestSeries = await ToonScraper.Home.latest_series();
console.log(latestSeries);

// Latest movies
const latestMovies = await ToonScraper.Home.latest_movies();
console.log(latesMovies);

Random content:

const ToonScraper = require('toon-scraper-package');

// Random movies
const randomMovies = await ToonScraper.Home.random_movies();
console.log(randomMovies);

// Random series
const randomSeries = await ToonScraper.Home.random_series();
console.log(randomSeries);

Category

The Category class allows users to explore different categories of anime, such as types, networks, and genres.

Categories:

const ToonScraper = require('toon-scraper-package');

// Get list of categories available
const categories = await ToonScraper.Category.categories();
console.log(categories);

Get category:

const ToonScraper = require('toon-scraper-package');

// Get list of perticular type of category, category = comedy, page = 1, type = movies or series
const comedyMovies = await ToonScraper.Category.get_category("comedy", 1, "movies");
console.log(comedyMovies);

Search

The Search class provides methods for searching anime titles, both through default search and live search.

Default search:

const ToonScraper = require('toon-scraper-package');

// anime = one piece and page = 1
const searchResults = await ToonScraper.Search.default_search('One piece', 1);
console.log(searchResults);

Live search:

const ToonScraper = require('toon-scraper-package');

const liveSearchResults = await ToonScraper.Search.live_search('one');
console.log(liveSearchResults);

Search by first character:

const ToonScraper = require('toon-scraper-package');

// First character = 'A' and page = 1
const SearchResults = await ToonScraper.Home.search_by_character('A', 1);
console.log(SearchResults);

Anime

The Anime class offers functions for fetching detailed information about specific anime titles, including movies or series, and retrieving their sources.

Movies or series info:

const ToonScraper = require('toon-scraper-package');

// Series info
const animeInfo = await ToonScraper.Anime.movie_or_series_info('one-piece', 'series');
console.log(animeInfo);

// Movies info
const movieInfo = await ToonScraper.Anime.movie_or_series_info('home-alone', 'movies');
console.log(movieInfo);

Source:

const ToonScraper = require('toon-scraper-package');

// Get source of series or movies
// Anime slug = hunter-x-hunter-1x1 and type = series
const animeInfo = await ToonScraper.Anime.fetch_source('hunter-x-hunter-1x1', 'series');
console.log(animeInfo);

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request on the GitHub repository.

License

This project is licensed under the ISC License - see the LICENSE file for details.