0.0.37 • Published 3 days ago
twitter-snap v0.0.37
twitter-snap
Create beautiful Tweet images fast. Fast, good design, Browser is not a dependency.
npx twitter-snap@latest https://twitter.com/elonmusk/status/1770222178279252062
Install
npm -g i twitter-snap@latest
Arguments
$ twitter-snap --help
Create beautiful Tweet images fast
USAGE
$ twitter-snap ID [--api getTweetResultByRestId|getTweetDetail|getSearchTimeline|getHomeTimeline|getHomeLatestTimeline|getListLatestTweetsTimeline|getUserTweets|getUserTweetsAndReplies|getUserMedia|getLikes|getBookmarks]
[--browserHeadless] [--browserProfile <value>] [--cookiesFile <value>] [--debug] [--ffmpegAdditonalOption <value>] [--ffmpegPath <value>] [--ffprobePath <value>] [--fontPath <value>] [--limit <value>] [--noCleanup] [-o <value>] [--sessionType
<value>] [--simpleLog] [--sleep <value>] [--theme RenderOceanBlueColor|RenderOceanBlueDarkColor|RenderSunsetGardenColor|RenderSunsetGardenDarkColor|RenderDawnBlossomColor|RenderDawnBlossomDarkColor|RenderFierySunsetColor|RenderFierySunsetDarkColor|R
enderTwilightSkyColor|RenderTwilightSkyDarkColor|RenderPlainColor|RenderPlainDarkColor|RenderTransparent|RenderTransparentDark|RenderTransparentShadow|RenderTransparentDarkShadow|RenderMakeItAQuote] [--width <value>]
ARGUMENTS
ID Twitter status id
FLAGS
-o, --output=<value> [default: {id}.{if-photo:png:mp4}] Output file name
--api=<option> [default: getTweetResultByRestId] API type
<options: getTweetResultByRestId|getTweetDetail|getSearchTimeline|getHomeTimeline|getHomeLatestTimeline|getListLatestTweetsTimeline|getUserTweets|getUserTweetsAndReplies|getUserMedia|getLikes|getBookmarks>
--browserHeadless Browser headless
--browserProfile=<value> [default: ~/.cache/twitter-snap/profiles] Browser profile
--cookiesFile=<value> [default: cookies.json] Cookies file
--debug Debug
--ffmpegAdditonalOption=<value> FFmpeg additonal option
--ffmpegPath=<value> [default: ffmpeg] FFmpeg path
--ffprobePath=<value> [default: ffprobe] FFprobe path
--fontPath=<value> [default: ~/.cache/twitter-snap/fonts] Font path
--limit=<value> [default: 30] Limit count
--noCleanup Cleanup
--sessionType=<value> [default: guest] Session type
--simpleLog Simple log
--sleep=<value> Sleep (ms)
--theme=<option> [default: RenderOceanBlueColor] Theme type
<options: RenderOceanBlueColor|RenderOceanBlueDarkColor|RenderSunsetGardenColor|RenderSunsetGardenDarkColor|RenderDawnBlossomColor|RenderDawnBlossomDarkColor|RenderFierySunsetColor|RenderFierySunsetDarkColor|Render
TwilightSkyColor|RenderTwilightSkyDarkColor|RenderPlainColor|RenderPlainDarkColor|RenderTransparent|RenderTransparentDark|RenderTransparentShadow|RenderTransparentDarkShadow|RenderMakeItAQuote>
--width=<value> [default: 650] Width
DESCRIPTION
Create beautiful Tweet images fast
https://github.com/fa0311/twitter-snap
EXAMPLES
Create a snap from tweet id with minimal commands.
$ twitter-snap 1349129669258448897
Create a snap using the RenderMakeItAQuote theme.
$ twitter-snap 1349129669258448897 --theme RenderMakeItAQuote
Create a snap using the browser session.
$ twitter-snap 1349129669258448897 --session-type browser
Create a snap using the file session.
$ twitter-snap 1349129669258448897 --session-type file --cookies-file cookies.json
Create snaps of 10 tweets from a user ID for that user.
$ twitter-snap 44196397 --api getUserTweets --limit 10
Create snaps from a user profile URL.
$ twitter-snap https://twitter.com/elonmusk
Create a snap from a tweet URL.
$ twitter-snap https://twitter.com/elonmusk/status/1349129669258448897
Create snaps from a user ID and save them with the count number.
$ twitter-snap 44196397 --api getUserTweets -o "{user-screen-name}/{count}.png"
Create snaps from a user ID and save them in a data folder.
$ twitter-snap 44196397 --api getUserTweets -o "data/{user-screen-name}/{id}.{if-photo:png:mp4}"
Create snaps from a user ID and save them with the tweet date.
$ twitter-snap 44196397 --api getUserTweets -o "{time-tweet-yyyy}-{time-tweet-mm}-{time-tweet-dd}/{id}.png"
Dependence
- ffmpeg (for video)
0.0.37
3 days ago
0.0.36
3 days ago
0.0.34
1 month ago
0.0.35
1 month ago
0.0.30
1 month ago
0.0.31
1 month ago
0.0.32
1 month ago
0.0.33
1 month ago
0.0.29
1 month ago
0.0.28
2 months ago
0.0.27
2 months ago
0.0.25
2 months ago
0.0.26
2 months ago
0.0.24
2 months ago
0.0.20
2 months ago
0.0.21
2 months ago
0.0.22
2 months ago
0.0.23
2 months ago
0.0.16
2 months ago
0.0.17
2 months ago
0.0.18
2 months ago
0.0.19
2 months ago
0.0.15
2 months ago
0.0.14
6 months ago
0.0.13
6 months ago
0.0.12
6 months ago
0.0.11
6 months ago
0.0.10
6 months ago
0.0.9
6 months ago
0.0.8
6 months ago
0.0.7
6 months ago
0.0.6
6 months ago
0.0.5
6 months ago
0.0.4
6 months ago
0.0.3
6 months ago
0.0.2
6 months ago
0.0.1
6 months ago