Skip to content

moqada/gyotaku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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