Giter Club home page Giter Club logo

csgostatsgg-scraper's People

Contributors

claabs avatar m-haimi avatar sruusk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

csgostatsgg-scraper's Issues

How to retrieve player data?

Here my snippet

I tried true/false (npm install local hero)

export const csgo = new CSGOStatsGGScraper({
    useLocalHero: true
});

with

const data = await csgo.getPlayer('76561197983832927');
console.log(data);

I got the following output

2023-08-03T13:16:22.738Z ERROR [hero-core\connections\ConnectionToHeroClient] ConnectionToClient.HandleRequestError {
  context: {},
  sessionId: '8dhUWdGGicT3Trw2amTRI',
  sessionName: undefined
} InjectedScriptError: TypeError: Cannot read properties of null (reading 'src')
    at JsPath.runJsPath (DiscordBotBot\agent\main\lib\JsPath.ts:165:13)
    at runNextTicks (node:internal/process/task_queues:60:5)
    at process.processImmediate (node:internal/timers:447:9)
    at async FrameEnvironment.execJsPath (DiscordBotBot\node_modules\core\lib\FrameEnvironment.ts:245:12)
    at async CommandRecorder.runCommandFn (DiscordBotBot\node_modules\core\lib\CommandRecorder.ts:90:16)
    at async CommandRunner.runFn (DiscordBotBot\node_modules\core\lib\CommandRunner.ts:36:14)
    at async ConnectionToHeroClient.executeCommand (DiscordBotBot\node_modules\core\connections\ConnectionToHeroClient.ts:258:12)
    at async ConnectionToHeroClient.handleRequest (DiscordBotBot\node_modules\core\connections\ConnectionToHeroClient.ts:66:14) {
  pathState: { step: 'src', index: 2 }
}
InjectedScriptError: TypeError: Cannot read properties of null (reading 'src')
    at JsPath.runJsPath (DiscordBotBot\agent\main\lib\JsPath.ts:165:13)
    at runNextTicks (node:internal/process/task_queues:60:5)
    at process.processImmediate (node:internal/timers:447:9)
    at async FrameEnvironment.execJsPath (DiscordBotBot\node_modules\core\lib\FrameEnvironment.ts:245:12)
    at async CommandRecorder.runCommandFn (DiscordBotBot\node_modules\core\lib\CommandRecorder.ts:90:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async AwaitedHandler.getProperty (DiscordBotBot\node_modules\files\2-finalized\awaited-dom\base\AwaitedHandler.ts:25:12)
    at async CSGOStatsGGScraper.getPlayer (DiscordBotBot\node_modules\csgostatsgg-scraper\src\player.ts:174:29)
    at async run (DiscordBotBot\node_modules\p-queue\dist\index.js:163:29)

--------------------------------------------------
--------------------------------------------------
------8dhUWdGGicT3Trw2amTRI-----------------------
-------------------------------------------------- {
  pathState: { step: 'src', index: 2 }
}

I don't understand what the error here is to debug further

SecretAgent window opens

When making requests the SecretAgent browser window and debug tools open and if I close them, new requests will hang.

How to run the program

Code noob here, sorry for bothering you with such stupid questions...
How do I run the code and use it within my website? How do I input the player ID?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.