HLTV: getMatch Returning Split Error
It seems the getEvent portion of getMatch isnt finding any information and is erroring out.
name here is blank, and then the id is breaking cause it is sending over an undefined url to getIdAt.
I don’t see any obvious change in hltv though. It looks like it should be working based on the selectors?
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 15 (8 by maintainers)
Found a workaround by using a non-default client.
never mind I got it to work by asking chatgpt
@abramyk-mv The goal of the library is to provide a JSON interface to HLTV’s website, it’s on the user to guarantee that they have access to the website. The network part of the library is completely customisable for that purpose using
HTLV.createInstance.Rotating IPs, sessions, headers/fingerprints and using (arguably illegal) tools to bypass CF will not be part of the library and I do not condone using this library for commercial purposes.
Why is the issue closed and marked as complete? Using such a workaround does not make the HLTV library work properly. It is not sufficient. I would rather leave the issue open to keep in mind that parsing itself still requires inner changes.
When checking the html from the fetchPage utility, this is what the html looks like. Seems like it has been blocked initially and so maybe thats why its not finding anything?