Coder Social home page Coder Social logo

otakudesu-scrapper's Introduction

Dokumentasi

Pertama ubah file env ke .env.

Base Url

Pastikan untuk selalu mengecek url yang bisa diakses web otakudesu, karena domain selalu berubah. Anda bisa mengeceknya disini https://web.facebook.com/otakudesu.fanshare?_rdc=1&_rdr.

Lalu taruh url tersebut di file .env.

Menjalankan

Untuk menjalankan koding ini ketikkan perintah berikut:

npm start

Tentu ini di terminal ya!

server berjalan di PORT 8000.

localhost:8000.

Endpoint API

Berikut adalah endpoint untuk otakudesu scrapper:

{url}/api/anime/v1/ongoing

Endpoint tadi akan menghasilkan list anime yang masih ongoing.

Result:

  statusCode: 200,
  status: 'OK',
  data: [
    url: ....,
    slug: ....,
    thumbnail: ....,
    title: ....,
    episode: ....,
    schedules: ....,
  ]

{url}/api/anime/v1/completed

Endpoint tadi akan menghasilkan list anime yang sudah completed.

Result:

  statusCode: 200,
  status: 'OK',
  data: [
    url: ....,
    slug: ....,
    thumbnail: ....,
    title: ....,
    episode: ....,
    rating: ....,
  ]

{url}/api/anime/v1/info/?name={slug}

Untuk endpoint ini akan memberikan informasi soal anime tersebut.

example: /api/anime/v1/info/?name=op-sub-indo

Result:

  statusCode: 200,
  status: 'OK',
  data: {
    imgUrl: ...,
    title: ...,
    slug: ...,
    description: ...,
    first_episode: {
      episode: ...,
      slug: ...,
    },
    last_episode: {
      episode: ...,
      slug: ...,
    },
    info: [...],
    episodes: [
      {
        uri: ...,
        eps: ...,
        slug: ..,
      },
      ...
    ]
  }

{url}/api/anime/v1/watch/?slug={slug}

Untuk endpoint ini akan memberikan informasi soal data episode beserta link stream anime tersebut.

example: /api/anime/v1/watch/?slug=wpoiec-episode-1047-sub-indo

Result:

  statusCode: 200,
  status: 'OK',
  data: {
    title: ...,
    video_uri: ...,
    thumbnail: ...,
    first_episode: {
      episode: ...,
      slug: ...,
    },
    last_episode: {
      episode: ...,
      slug: ...,
    },
    episodes: [
      {
        uri: ...,
        eps: ...,
        slug: ..,
      },
      ...
    ]
  }

otakudesu-scrapper's People

Contributors

fsholehan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.