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

tsukiapp-mal-scrapper

v2.1.5

Published

A simple but useful MyAnimeList.net scrapper for Tsuki webapp

Downloads

2

Readme

Infomation:

This documentation is based on the version 2.1.1 of this package. If you are using an older version of this package I recommend you to update it. Btw, the doc of older versions are on: https://github.com/Tsukiapp/MAL-scrapper/blob/main/src/%40deprecated/readme.md

Features 🦾

  • ✅ Fetch info about anime
    • Search animes and extract their information instantly, direct from myanimelist.
  • ✅ Fecth seasonal animes
    • Fetch the top 50 animes in this season.
  • ✅ Get news
    • Fetch the latest news from myanimelist, preview and full detailed.
  • ✅ Fetch top animes
    • Fetch the top 50 animes.

How To Use 📖

//index.js:
import AnimeClass from "Tsukiapp-mal-scrapper"; 

// Intialize the class:
const Anime = new AnimeClass();

//getAnimeInfo(keyword: string, type: string)
// -> type could be either: 'anime' and 'manga'
const JujutsuKaisenInfo = await Anime.getAnimeInfo('Jujutsu%20Kaisen','anime');
console.log(JujutsuKaisenInfo)
/*
return -> {
  title: string
  score: string
  description: string
  coverImage: string,
  thumbnailImage: string,
  images: string[],
  characters: Object[]
}
*/

//getNewsDetails(newsPreviewUrl: getNewsPreview, id: string)
// -> id must be the ID of the new and getNewsPreview function as a parameter:
let newDetailed = await Anime.getNewsDetails(getNewsPreview, '63779601');
console.log(newDetailed);
/*
return -> {
  contentTitle: string,
  contentImage: string,
  contentDescription: string
}
*/

//getNewsPreview()
let newPreview = await Anime.getNewsPreview();
console.log(newPreview);

/*
return -> [{
  ID: number,
  newsID: string,
  newsTitle: string,
  newsDescription: string,
  newsThumbnail: string,
  newsDate: string
}] 
*/

//getSeasonalInfo()
let seasonalAnime = await Anime.getSeasonalInfo();
console.log(seasonalAnime)
/*
return -> [{
  Id: number (autogenerated is not the anime's ID),
  link: string,
  title: string,
  producer: string,
  images, string[],
  genre: sring,
  description: string,
  score: string but can parsed into number -> maybe later,
  members: string
}]
*/

let topAnime = await Anime.getTopAnime();
console.log(topAnime);
/*
return -> [{
  thumbnailImage: string,
  url: string,
  title: string,
  stats: string
}]
*/

Download 💾

To clone and run this application, you'll need Git and Node.js (which comes with npm) installed on your computer. From your command line:

# Clone this repository
$ git clone https://github.com/Tsukiapp/MAL-scrapper.git

# Go into the repository
$ cd MAL-scrapper

# Install dependencies
$ npm install

# Build
$ npm run build

# Run the app
$ npm run start

Credits 📚

This software uses the following open source packages:

License 🔐

The source code of this project is under the MIT license


GitHub @Tsukiapp.   Github @alejandro0619.