Open ghost opened 6 years ago
Tried by making a small js script for it:
const screenshotTweet = require('screenshot-tweet');
if (!process.argv[2]) return console.log('No url defined - Use "node <script> <url> <output>"');
if (!process.argv[3]) return console.log('No path defined - Use "node <script> <url> <output>"');
console.log('Downloading image of tweet...');
screenshotTweet.default(process.argv[2], process.argv[3]).then(() => console.log('Done!')).catch(error => console.error(error));
But I'm still getting the error:
$ node tweet https://twitter.com/discordapp/status/1027365054792888321 file
> Downloading image of tweet...
> Assertion failed: frame_header.payload_length == sizeof xfer_info, file src\win\pipe.c, line 1708```
Hey! I'm unable to use the CLI command to output a screenshot. Here's my console output:
Changing the tweet url, the output format, or the output destination results in the same error. My friend was able to run it without any issues, so I'm not too sure why it doesn't works on my end.
The package was installed via
npm install -g screenshot-tweet