gigobyte / HLTV

The unofficial HLTV Node.js API
MIT License
398 stars 107 forks source link

Split problem with connectToScorebot #540

Closed Rtlagot closed 2 years ago

Rtlagot commented 2 years ago

Hi there,

I know this issue has already happened before, but I tried eveything I could find on the issues and couldn't resolve mine. I've tried with different match id and none worked so far.

I've checked in the lib code, and saw that you look for this in the page source to get the info :

var url = $('#scoreboardElement') .attr('data-scorebot-url')

Thing is, I couldn't find those tags in the source code of the page. Maybe HTLV uploaded their source code ?

Thanks for taking a look at it,

Fiz

Rtlagot commented 2 years ago

Also I know that my IP is not banned because I can use other requests

Rtlagot commented 2 years ago

Maybe it was a dumb question from my part, game has to be live for it to work. Is there any way to get the logs of a finished game ?

Revilum commented 2 years ago

Maybe it was a dumb question from my part, game has to be live for it to work. Is there any way to get the logs of a finished game ?

the game has to be live on order for the scorebot to work. If you go to HLTV on live matches there is a live killfeed which is what the scorebot reads.

gigobyte commented 2 years ago

It's not possible to get the logs of a finished game, although if you connect mid-game you will get all past logs in the first event.