tweet-shot
v0.4.0
Published
Take a screenshot of a tweet and download all media from it
Downloads
9
Readme
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