gyotaku
v1.0.0
Published
Web GYOTAKU client for Node.js (unofficial)
Downloads
2
Maintainers
Readme
gyotaku
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/', ...]