spider-api

0.0.2 • Public • Published

spider-api

I've been repeating with creating logics using spiders, so I decided to create a api center to hold these APIs based on spiders. This tool is somehow based on the previous spider adapter tool.

How to Use

Currently it has only one API for NHK Radio Center. So:

const radio = require('../index').nhk_radio;

radio.getRadios().then(res => console.log(res));

API List

NHK Radio

getRadios()

Return:

[ { title: '午後 X 時のNHKニュース',
    filename: '',
    duration: '297',
    size: '2376621',
    slow: 
     { filename: '',
       duration: '357',
       size: '2863341' },
    fast: 
     { filename: '',
       duration: '178',
       size: '1431693' } },
  ...]

getLatestRadio

Return:

{ title: '午後 X 時のNHKニュース',
    filename: '',
    duration: '297',
    size: '2376621',
    slow: 
     { filename: '',
       duration: '357',
       size: '2863341' },
    fast: 
     { filename: '',
       duration: '178',
       size: '1431693' }}

Bing Image

getImage

Return:

{ url:
   'http://bing.com/th?id=OHR.BlueChip_ROW8110118488_1920x1080.jpg&rf=LaDigue_1920x1080.jpg&pid=hp',
  copyright:
   'Circuit board of a computer (© Bobkov Evgeniy/Shutterstock)',
  copyrightlink: 'javascript:void(0)',
  title: '',
  hsh: 'e54b9ac63a19bec27a5c288b93d5c024' }

Sorry I removed other infor from the original response

/spider-api/

    Package Sidebar

    Install

    npm i spider-api

    Weekly Downloads

    6

    Version

    0.0.2

    License

    ISC

    Unpacked Size

    6.28 kB

    Total Files

    10

    Last publish

    Collaborators

    • edel