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

Unexpected end of JSON input #27

Open
BjoernRave opened this issue May 25, 2018 · 0 comments
Open

Unexpected end of JSON input #27

BjoernRave opened this issue May 25, 2018 · 0 comments

Comments

@BjoernRave
Copy link

BjoernRave commented May 25, 2018

Hey, I wanted to use this package and I dont get it to work, it always prints out:


internal/modules/cjs/loader.js:700
    throw err;
    ^

SyntaxError: C:\Users\bjoer\Desktop\webscraper\results.json: Unexpected end of JSON input

My code looks like this:

const xray = new Xray()
  .driver(
    phantom({
      XSSAuditingEnabled: true,
      loadImages: false,
      webSecurity: false,
      weak: false
    })
  )
  .concurrency(3)
  .throttle(3, 500);

xray("http://www.google.de", "p", [
    {
      name: ""
    }
  ]).write("results.json");

It also says when installing, that Phantom v1 is no longer supported. Is that the reason?

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