New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

heroba

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

heroba

heroba - donderhiroba crawler

unpublished
latest
Source
npmnpm
Version
0.9.1
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Heroba - Donderhiroba manager

동더히로바 크롤링 + 동더히로바 조작

소개

동더히로바의 정보를 가져오고 수정할 수 있는 라이브러리입니다.

사용법

0. 설치

Node.js에서

npm -i heroba 는 아직 배포안함 수구

웹에서(CDN)

아직 없음

0-1.확장불러오기(Node.js)

const heroba  = require('heroba');

1.사용법

heroba.header()

heroba.header(cookie:string) => Object
ex) heroba.header('_token_v2=tokentokentokentoken')

히로바에 get요청을 보내기 위한 header를 반환합니다.

heroba.getSessionToken(id, pw)

heroba.getSessionToken(id:string, pw:string) => String
ex) heroba.getSessionToken('example@email.com', 'examplePassword')

히로바에 로그인하여 세션 쿠키인 Token값을 반환합니다.

heroba.isLogin(token)

heroba.isLogin(token:String) => boolean

토큰값을 입력하여 히로바에 로그인 되어 있는지 여부를 반환합니다. false가 반환되었다면, 해당 토큰은 더 이상 유효하지 않습니다.

heroba.getCurrentLoginData(token)

heroba.getCurrentLoginData(token:String) => Object
{
    taikoNo:Number,
    nickname:String,
    title:String,
    myDon:String
}

현재 로그인 되어있는 카드의 기본 정보들을 반환합니다. 가져오는 정보로는 북 번호, 닉네임, 칭호, 마이동 이미지 주소가 있습니다.

heroba.getCardList(token)

heroba.getCardList(token:String) => Array
[
  {
    taikoNo: 000000000000,
    nickname: '닉네임',
    myDon: 'https://img.taiko-p.jp/imgsrc.php?v=&kind=mydon&fn=mydon_000000000000'
  }
  ...
]

해당 계정에 등록되어있는 카드들의 기본 정보를 반환합니다.

heroba.changeLogin(token, taikoNo)

heroba.changeLogin(token:String, taikoNo:Number) => boolean

해당 북번호에 해당하는 유저로 재로그인합니다. 북번호가 올바르지 않다면 error를 반환합니다.

heroba.logout(token)

heroba.logout(token:String) => Boolean

히로바에서 로그아웃합니다. 해당 토큰은 만료되어 사용할 수 없습니다.

heroba.updateScore(token)

heroba.updateScore(token:String) => Boolean

해당 유저의 플레이정보를 업데이트합니다.

heroba.getClearData.getList(token, genreNo)

heroba.getClearData.getList(token:String, genreNo:Number) => Array
ex) heroba.getClearData.getList(token, 1)
[
  songClearData {
    title: 'アバみ',
    clearData: [
    { difficulty: 'easy', crown: 'none', badge: 'none' },
    { difficulty: 'normal', crown: 'none', badge: 'none' },
    { difficulty: 'hard', crown: 'none', badge: 'none' },
    { difficulty: 'oni', crown: 'none', badge: 'none' }
  ],,
    songNo: 922
  }
  ...
]

해당 장르의 곡들의 클리어 정보를 반환합니다.

heroba.getClearData.getListAll(token)

heroba.getClearData.getListAll(token:String) => Array

전 장르 곡들의 클리어 정보를 반환합니다.

heroba.getPlayData.bySong(token, songNo)

heroba.getPlayData.bySong(token:String, songNo:Number) => Object
ex) heroba.getPlayData.bySong(token, 1111)
songPlayData {
  title: '怪物',
  playData: [
  {
    difficulty: 'normal',
    clear: { badge: 'none', crown: 'none' },
    bestScore: 0,
    ranking: 0,
    good: 0,
    ok: 0,
    bad: 0,
    maxCombo: 0,
    roll: 0,
    playCount: { play: 0, clear: 0, fullCombo: 0, donderfullCombo: 0 },
    sectionData: []
  },
  {
    difficulty: 'oni',
    clear: { badge: 'purple', crown: 'gold' },
    bestScore: 970780,
    ranking: 0,
    good: 437,
    ok: 29,
    bad: 0,
    maxCombo: 466,
    roll: 2,
    playCount: { play: 8, clear: 7, fullCombo: 1, donderfullCombo: 0 },
    sectionData: []
  },
  {
    difficulty: 'easy',
    clear: { badge: 'none', crown: 'none' },
    bestScore: 0,
    ranking: 0,
    good: 0,
    ok: 0,
    bad: 0,
    maxCombo: 0,
    roll: 0,
    playCount: { play: 0, clear: 0, fullCombo: 0, donderfullCombo: 0 },
    sectionData: []
  },
  {
    difficulty: 'hard',
    clear: { badge: 'none', crown: 'none' },
    bestScore: 0,
    ranking: 0,
    good: 0,
    ok: 0,
    bad: 0,
    maxCombo: 0,
    roll: 0,
    playCount: { play: 0, clear: 0, fullCombo: 0, donderfullCombo: 0 },
    sectionData: []
  }
  ],
  songNo: 1111
}

songNo에 해당하는 곡에 대한 플레이 정보를 반환합니다.

heroba.getPlayData.all(token)

heroba.getPlayData.all(token:String) => Array

전곡에 대한 플레이 정보를 반환합니다.

heroba.getDaniData.byDani(token, daniNo)

heroba.getDaniData.byDani(token:String, daniNo:Number) => Object | Null
ex) heroba.getDaniData.byDani(token, 11)
{
  dani: 'SIXTH DAN',
  bestScore: 2770250,
  good: 1710,
  ok: 285,
  bad: 9,
  roll: 117,
  maxCombo: 666,
  drumCount: 2112,
  gauge: 0,
  daniSongData: [
    {
      order: 1,
      title: 'てんびん座急行 夜を行く',
      difficulty: 'oni',
      good: 581,
      ok: 87,
      bad: 1,
      roll: 15,
      maxCombo: 666,
      drumCount: 0
    },
    {
      order: 2,
      title: 'Donder Time',
      difficulty: 'oni',
      good: 368,
      ok: 84,
      bad: 6,
      roll: 90,
      maxCombo: 418,
      drumCount: 0
    },
    {
      order: 3,
      title: 'Hyper Bass (feat. Yunomi)',
      difficulty: 'oni',
      good: 761,
      ok: 114,
      bad: 2,
      roll: 12,
      maxCombo: 541,
      drumCount: 0
    }
  ]
}

daniNo에 해당하는 단위의 플레이 정보를 반환합니다.

heroba.getDaniData.all(token)

heroba.getDaniData.all(token:String) => Array

전 단위 플레이 정보를 반환합니다.

FAQs

Package last updated on 24 Aug 2023

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