🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@yanamiku/randime-scraper

Package Overview
Dependencies
Maintainers
0
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yanamiku/randime-scraper

Scraper untuk mencari anime di Randime

1.1.1-beta
latest
npm
Version published
Weekly downloads
0
Maintainers
0
Weekly downloads
 
Created
Source

@yanamiku/randime-scraper

npm License Downloads

Scraper sederhana untuk mengambil informasi anime dari Randime menggunakan Node.js.

Fitur

  • Scraping Data Anime dari situs Randime.moe.
  • Mendukung Pencarian Dinamis berdasarkan query.
  • Mengambil Detail Anime (judul, deskripsi, gambar, genre).

📦 Instalasi

Pasang melalui npm:

npm install @yanamiku/randime-scraper

Atau dengan yarn:

yarn add @yanamiku/randime-scraper

🚀 Penggunaan

Gunakan dalam kode JavaScript atau Node.js:

const { fetchAnimeList } = require('@yanamiku/randime-scraper')

(async () => {
    try {
        const result = await fetchAnimeList("ki")
        console.log(result)
    } catch (error) {
        console.error("Error:", error)
    }
})();

🔍 Hasil Output

Contoh hasil JSON yang dikembalikan:

{
  "status": true,
  "baseUrl": "https://www.randime.moe/anime/search",
  "query": "ki",
  "totalResult": 2,
  "author": "© YanaMiku - Iyuzaki Yanagi",
  "list": [
    {
      "imageUrl": "https://www.randime.moe/_next/image?url=https%3A%2F%2Fmedia.kitsu.app%2Fanime%2Fposter_images%2F5949%2Foriginal.jpg&w=640&q=75",
      "name": "Maken-Ki!",
      "description": "Based on the manga series by Hiromitsu Takeda, this romantic comedy is about Takeru Ohyama, a typical perverted teenage boy. His new school doesn't require entrance exams, and it just turned co-ed! Unfortunately, his dreams of a happy high school life are dashed when he finds out the school is much more than it seems. All of the students wield a special item—a Maken—to unleash their magical abilities in duels! Can Takeru find a Maken that works for him? Even while trying to fit in at a new school and dealing with all kinds of girl problems?\n\n(Source: FUNimation)",
      "url": "https://www.randime.moe/anime/5949",
      "genre": [
        "Martial Arts",
        "Super Power",
        "School",
        "Harem",
        "Action",
        "Ecchi"
      ],
      "review": {
        "Hulu": "https://www.hulu.com/maken-ki-battling-venus"
      }
    },
    {
      "imageUrl": "https://www.randime.moe/_next/image?url=https%3A%2F%2Fmedia.kitsu.app%2Fanime%2Fposter_images%2F7275%2Foriginal.jpg&w=640&q=75",
      "name": "Maken-Ki! Two",
      "description": "Takeru continues his education at Tenbi Academy as part of the newly formed Security Committee. As a team with the other members, they battle unscrupulous individuals who use their Maken for evil purposes. In the meantime, his libido and the conflicting romantic interests of the girls surrounding him complicate matters considerably.\n\n(Source: ANN)",
      "url": "https://www.randime.moe/anime/7275",
      "genre": [
        "Martial Arts",
        "Super Power",
        "School",
        "Harem",
        "Action",
        "Ecchi"
      ],
      "review": {
        "Hulu": "https://www.hulu.com/maken-ki-battling-venus"
      }
    }
  ]
}

📚 API Reference

1️⃣ fetchAnimeList(query: string)

Mencari anime berdasarkan query.
Parameter:

  • query (string): Kata kunci pencarian (contoh: "one punch man").

Return:

  • Objek JSON dengan daftar anime yang ditemukan.

Contoh:

const result = await fetchAnimeList("naruto");
console.log(result.list); // Menampilkan daftar anime yang ditemukan

🛠 Dependencies

  • node-fetch (untuk mengambil halaman web)
  • jsdom (untuk memproses HTML)

📜 Lisensi

Lisensi MIT © 2025 YanaMiku (Iyuzaki Yanagi)

❓ FAQ

Q: Apakah paket ini gratis?

✅ Ya! Paket ini bersifat open-source dan gratis digunakan.

Q: Bagaimana jika saya menemukan bug?

🔹 Silakan laporkan masalah dengan menghubungi kami Contact .

Keywords

anime

FAQs

Package last updated on 18 Feb 2025

Did you know?

Socket

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.

Install

Related posts