Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Screenshotting twitter stacks tweets #106

Open
Cryptizism opened this issue Jul 11, 2021 · 0 comments
Open

Screenshotting twitter stacks tweets #106

Cryptizism opened this issue Jul 11, 2021 · 0 comments

Comments

@Cryptizism
Copy link

Cryptizism commented Jul 11, 2021

When screenshotting twitter with the following code (Making a discord bot, left out message parsing, on message func ect. so the code is clearer):

var webshot = require('webshot');
var settings = {
	renderDelay: 10000
	}
webshot(web, 'screenshot.png', settings, function(err) {
      if (err){
        message.reply("There was an error in making the screenshot... (IGNORE, FOR DEBUGGING): " + err);
      } else {
        message.reply("Screenshot sucessful! Here is a screenshot of `"+ web +"` at <t:" + Date.now() + ":D> : ", {files: ["screenshot.png"]});
      }
    });

When I try screenshot: https://twitter.com/HarryButAverage/status/1414178617651834881
It outputs this mess:
image
Does anyone have any hunches as to why or any fixes? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant