0.3.1 • Published 3 years ago

@wabarc/archiver v0.3.1

Weekly downloads
415
License
GPL-3.0-or-later
Repository
github
Last release
3 years ago

archiver

Read this in other languages: English | 简体中文

Archive webpages from Telegram channel and etc.

Installation

Using npm:

npm install @wabarc/archiver

Using yarn:

yarn add @wabarc/archiver

Example

import { Archiver } from '@wabarc/archiver';
// const archiver = require('@wabarc/archiver');

const archived = await new Archiver().telegram({ channel: 'channel_name', msgid: 1 }).start();
console.log(archived)

Instance methods

The available instance methods are listed below.

  • archiver#telegram({ channel: string, msgid: number })
  • archiver#start()
  • archiver#do()
  • archiver#stage()

Request Params

Telegram

These are the available options for archival webpage from Telegram channel. channel and msgid is required.

{
  // `channel` is the Telegram channel name
  channel: 'wabarc_testing',

  // `msgid` is the message id published on the Telegram channel.
  msgid: 1
}

Response Schema

[
  {
    id: 1,
    url: 'https://example.org/',
    title: 'Example ORG',
    content: '<html><head></head><body>body content</body></html>',
    success: true
  }
]

License

This software is released under the terms of the GNU General Public License v3.0. See the LICENSE file for details.

0.3.1

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

4 years ago

0.1.0

4 years ago

0.0.3

4 years ago

0.0.4

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago