Skip to content(if available)orjump to list(if available)

League of Legends data scraping the hard and tedious way for fun

finalfire

This is really something cool, and it is exactly what I was looking for. To give a context, I worked on some data science-inspired studies [1] about LoL, and the future research direction is to provide a formal modeling for the games and analyze them through it. While I had a little success by getting aggregated data from websites such as uol.gg, the granularity is not fine enough to do very interesting analysis.

[1] https://doi.org/10.1016/j.ipm.2023.103516

moonshadow565

> League of Legends runs on a custom game engine developed in 2009.

Developed by Sergey Titov (same engine that powers Big Rigs).

killerteddybear

Big Rigs: Over the Road Racing?

m0w0kuma

I've been working on something similar [1], but I took a different approach: I statically extract all decryption stubs using a IDA script I wrote, then emulate them using Unicorn. I'm also interested in your implementation details—do you have your code on GitHub or somewhere else?

[1] https://github.com/m0w0kuma/ROFL

SpaceManNabs

One of the cool things about dota is that opendota and stratz provide a lot of data because steam is relatively open.

it is how i wrote a blog post on generating builds for heroes before dota plus even had the feature!

picafrost

A tip:

  @media (prefers-color-scheme: dark) {
    img[src*="svg"], img[src*="png"] {
      filter: invert(1) hue-rotate(180deg);
    }
  }

null

[deleted]

Kuinox

The diagrams are not visible in dark mode.

doix

  document.querySelectorAll('img').forEach(img => img.style.background = 'white');
As a quick hack for anyone else that has the problem (paste into your browser console).

null

[deleted]

bilekas

I see comments like this a lot actually and I'm curious, if the client is manipulating the intended style and layout of the site, do you really think it's the responsibility of the website owner ?

Otherwise I'm confused why you mention it.

doix

This isn't the case of a browser plugin modifying the styles. The blog framework or whatever detects what your browser/system preference is and respects it. So if you've got your browser/os set to "dark mode" the page renders in "dark mode". Except the author used transparent images with dark lines, so they are invisible.

I think it's fair enough to complain about.

akerl_

The site automatically displays in dark mode if the browser says it’s using dark mode.

So this isn’t something the user is doing to manipulate the style and layout: their browser is saying “hey, fyi, this user’s local system biases to dark mode” and the site is choosing to respond by styling in a way that breaks diagram visibility.

bool3max

In this case yes because the website itself has a dark-mode toggle in the top right corner, and in its dark mode, the images are not visible.

bilekas

Ahhh I missed that! That's completely fair then

jwagenet

The blog has a toggle for darkmode and some of their images are black text with a transparent background. When darkmode is toggled, the text is effectively invisible, so in this case it seems to be an oversight of the blog.

null

[deleted]

stordoff

This site has a theme picker to toggle between light and dark modes.

armanckeser

Really cool project! I am not sure if this is only me, but your dark theme is hiding the illustrations fyi.

null

[deleted]