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

@boboiboyturuuu/kiryuu-scrape

v1.0.6

Published

scraper manga kiryuu

Downloads

213

Readme

@boboiboyturuuu/kiryuu-scrape

npm version

Fitur

  • Fetch Manga Details: Mengambil detail dari sebuah halaman manga.
  • Search Manga: Mencari manga berdasarkan keyword yang diberikan.
  • Download Manga: Mendownload file manga dari sebuah URL.

Instalasi

npm install @boboiboyturuuu/kiryuu-scrape

Contoh Penggunaan

Mengambil Detail Manga

Anda dapat mengambil detail dari sebuah halaman manga dengan menggunakan fungsi mangadetails:

import { mangadetails } from '@boboiboyturuuu/kiryuu-scrape';

async function getMangaDetails() {
    const url = 'https://kiryuu.org/manga/one-piece/';
    const details = await mangadetails(url);
    console.log(details);
}

getMangaDetails();

##Contoh Respon

{
    "title": "One Piece",
    "author": "Eiichiro Oda",
    "artist": "Eiichiro Oda",
    "status": "Ongoing",
    "genres": ["Action", "Adventure", "Comedy", "Drama", "Fantasy", "Shounen"],
    "description": "Gol D. Roger was known as the Pirate King, the strongest and most infamous being to have sailed the Grand Line...",
    "cover": "https://kiryuu.id/wp-content/uploads/2020/12/one-piece-cover.jpg",
    "chapters": [
        {
            "title": "Chapter 1000: Straw Hat Luffy",
            "release_date": "January 1, 2021",
            "url": "https://kiryuu.id/one-piece-chapter-1000/"
        },
        {
            "title": "Chapter 999: The Sake I Brewed to Drink With You",
            "release_date": "December 25, 2020",
            "url": "https://kiryuu.id/one-piece-chapter-999/"
        }
        // ... More chapters
    ]
}

Mencari Manga

Gunakan fungsi search untuk mencari manga berdasarkan kata kunci tertentu:

import { search } from '@boboiboyturuuu/kiryuu-scrape';

async function searchManga() {
    const query = 'naruto';
    const results = await search(query);
    console.log(results);
}

searchManga();

##Contoh Respon

[
    {
        "title": "Naruto",
        "url": "https://kiryuu.id/manga/naruto/",
        "cover": "https://kiryuu.id/wp-content/uploads/2020/12/naruto-cover.jpg"
    },
    {
        "title": "Naruto Gaiden: The Seventh Hokage",
        "url": "https://kiryuu.id/manga/naruto-gaiden-the-seventh-hokage/",
        "cover": "https://kiryuu.id/wp-content/uploads/2020/12/naruto-gaiden-cover.jpg"
    }
    // ... More results
]

Mendownload Manga

Anda juga bisa mendownload file manga dari sebuah URL menggunakan fungsi download:

import { download } from '@boboiboyturuuu/kiryuu-scrape';

async function downloadManga() {
    const url = 'https://kiryuu.org/manga/one-piece/chapter-1000/';
    const filePath = await download(url);
    console.log('File downloaded to:', filePath);
}

downloadManga();

API

mangadetails(url: string): Promise<Object>

Mengambil detail manga dari halaman Kiryuu.

  • url: URL halaman manga yang ingin diambil detailnya.
  • Returns: Objek yang berisi detail manga.

search(query: string): Promise<Array<Object>>

Mencari manga berdasarkan query.

  • query: Kata kunci yang ingin dicari.
  • Returns: Array hasil pencarian, atau null jika tidak ada hasil.

download(url: string): Promise<string>

Mendownload file manga dari halaman Kiryuu.

  • url: URL halaman manga atau chapter yang ingin didownload.
  • Returns: Path ke file yang didownload.

Author

Library ini dikembangkan oleh Boboiboyturuuu.