Skip to content

moqada/gyotaku

Folders and files

NameName
Last commit message
Last commit date
Nov 19, 2015
Mar 14, 2016
Nov 19, 2015
Nov 19, 2015
Jun 25, 2016
Mar 14, 2016
Nov 19, 2015
Nov 19, 2015
Nov 19, 2015
Nov 19, 2015
Apr 25, 2017

Repository files navigation

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/', ...]

Related