How do you find the amount of wrs, 2nd places, 3rd places, ect... an user has in speedrun.com's code? Like, html code not inspect
3 years ago
Portugal

I'm trying to make a dc bot with python and it extracts the html code of the user's page. But I can't find an accurate way to count the amount of wrs or other places set by that player. Is there any keyword that appears before of after a place? Please help if you know speedrun.com's html code The amount of wrs set on a specific category and who set them would also be very useful information

Modificato da l'autore 3 years ago
Finland

cant help you but you know you can edit your posts so you dont need to have to posts after each other :P

StarSpeed piace questo
Somerset, England

Web scraping is against the site's TOS, use the api or unofficial api (/_fedata pages) instead

But to answer your question, you could get all elements with the trophy className and then check if their parentElement's innerText is equal to 1st, 2nd, 3rd, ect.

Here is an example in javascript [...document.querySelectorAll(".trophy")].filter(x => x.parentElement.innerText == " 1st")

Gaming_64 piace questo
Portugal

@YUMmy_Bacon5 I figured it out by myself, it was such a headache lol, so you find "ajax_get" on the user's page html code and then add the link to after to "speedrun.com". There you can actually acess the places (: Ps: Repeat the process for fullgame and individual But wait I cant acess do this cause of TOS? What if I ask @Meta?

Modificato da l'autore 3 years ago
Somerset, England

[quote=Terms of Use]You may not use any scraper, crawler, spider, robot or other automated means of any kind to access or copy data on the Website, deep link to any feature or Content on the Website, or bypass our robot exclusion headers or other measures we may use to prevent or restrict access to the Website.[/quote] You might be allowed to do what you're doing if you run it in the context of the site and you could ask site staff

Modificato da l'autore 3 years ago
Gaming_64 piace questo
Portugal

@YUMmy_Bacon5 Yeah submitted a request to see if what I'm doing is allowed