gyotaku

1.0.0 • Public • Published

gyotaku

NPM version NPM downloads Build Status Coverage Status Dependency Status DevDependency Status License

Web GYOTAKU (ウェブ魚拓) client for Node.js.

Unofficial and Implemented by dirty scraping...

Installation

npm install --save gyotaku

Usage

import Gyotaku from 'gyotaku';
 
 
const gyotaku = new Gyotaku('http://google.com');
 
// take GYOTAKU
gyotaku.take().then(url => {
  console.log(url);  // http://megalodon.jp/2015-1120-0000-00/google.com/
});
 
// listing GYOTAKU urls
gyotaku.list().then(urls => {
  console.log(urls);  // ['http://megalodon.jp/2007-1006-1745-56/google.com/', ...]
});
 
// listing GYOTAKU urls from HTML
Gyotaku.parseListHTML('HTML_STRING_OF_LIST_PAGE');  // ['http://megalodon.jp/2007-1006-1745-56/google.com/', ...]

Package Sidebar

Install

npm i gyotaku

Weekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • moqada