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

page.evaluate: window.KPSDK.configure is not a function #20

Open
jvgeee opened this issue Nov 26, 2024 · 0 comments
Open

page.evaluate: window.KPSDK.configure is not a function #20

jvgeee opened this issue Nov 26, 2024 · 0 comments

Comments

@jvgeee
Copy link

jvgeee commented Nov 26, 2024

Hey, thanks for this tool.

Trying to get it to work, my Solver is like so:

new Solver({
      "load-complete": true,
      "request-tracing": true,
      kasada: [
        {
          domain: "site.com",
          method: "GET",
          path: "/*",
          protocol: "https:",
        },
      ],
      "sdk-script": {
        url: "https://site.com/149e9513-01fa-4fb0-aad4-566afd725d1b/2d206a39-8ed7-437e-a3be-862e0f06eea3/p.js",
      },
      url: "https://www.site.com",
    });
  }

This is from trying to screen-scrape a website whose pages are protected by kasada, but I'm getting window.KPSDK.configure is not a function errors. If I remove the kasada[] from the Solver config the page loads but it hits the blank URL with a kasada script tag:

<script src="/149e9513-01fa-4fb0-aad4-566afd725d1b/2d206a39-8ed7-437e-a3be-862e0f06eea3/ips.js?KP_UIDz=0bkRMrjEhQu7pYKFvfyT4Gqm52BScTqyuR5Yj4TCnWOPB4MzXr79maIUyK6cbqZhTOHbIPI0cI67bAN4hd2G1hWHNW0tMai2Uy58vRdajEYnWtngtrrBR5DL4rRxCBJp7YoXQriGVLAtNwhYA17tevVZRZUDF8wTO3JMI7YdWXX&amp;x-kpsdk-im=CiRmNThlM2NiYy0xNTU2LTQ2MDktYmY3Mi0yMGQ0YWYxMWJlYzE"></script>

Any ideas what I can do?

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