0.4.0 • Published 3 years ago

tweet-shot v0.4.0

Weekly downloads
22
License
MIT
Repository
github
Last release
3 years ago

tweet-shot

Take a screenshot of a tweet and download all media from it.

Install

npm i tweet-shot

Usage (Programmatically)

import tweetShot from 'tweet-shot';

const main = async () => {
    // ...
    await tweetShot('https://twitter.com/Diablohu/status/1092414659057967104');
    // ...
};

main();

API

tweetShot(url, options)

url

Type: String (required)

The URL of target tweet.

options

Type: Object

options.dest

Type: String

Destination directory. Default to current working directory.

options.proxy

Type: String

Proxy server URL.

options.scale

Type: Number

Page scale number. Default value 1.

options.darkMode

Type: Boolean

Whether or not to tell the browser to use dark mode. Default value false.

options.quality

Type: Number

JPEG image quality (0-100). Default value 60.

Usage (CLI)

tweet-shot --url https://twitter.com/Diablohu/status/1092414659057967104

Type tweet-shot -h for options.

License

MIT © Diablohu

0.4.0

3 years ago

0.3.0

3 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.0

5 years ago

0.1.0-alpha.1

5 years ago