aMockTie

joined 1 year ago
[–] aMockTie@beehaw.org 4 points 21 hours ago

100% this. Every website is different, though after doing this kind of thing for long enough, there are often common patterns and frameworks/libraries. Even general obfuscation can be reasonably reverse engineered with enough time and effort.

[–] aMockTie@beehaw.org 2 points 21 hours ago

I agree that OP sounds like a beginner, and what you've suggested is likely the best approach for someone who is familiar with frontend tools and frameworks. Selenium (and admittedly BeautifulSoup) is probably too low level for this particular user, but that doesn't mean they can't still learn some fundamentals while solving this problem without resorting to something as heavy and complicated as background browser emulation and rendering. I could be wrong though.

[–] aMockTie@beehaw.org 2 points 21 hours ago

I'm not currently on Discord, could you upload the code to pastebin or something similar?

https://pastebin.com/

[–] aMockTie@beehaw.org 1 points 22 hours ago (2 children)

I would love to see your code, but I understand if this forum isn't the most ideal place to share.

[–] aMockTie@beehaw.org 2 points 22 hours ago (2 children)

In my experience, this scenario typically means that there is some sort of API (very likely undocumented) that is being used on the backend. That requires a bit more investigation and testing with browser developer tools, the JS Console, and often trial and error. But once you overcome that (admittedly very complex and technical) hurdle, you can almost always get away with just using the requests library at that point.

I've had to do that kind of thing more times than I'd like to admit, but the juice is almost always worth the squeeze.

[–] aMockTie@beehaw.org 4 points 1 day ago (11 children)

Selenium is really more of a testing framework for frontend developers, and could theoretically be used for scraping, but that would be somewhat like buying a car based on the paint and not looking in detail under the hood.

I can't say I've ever worked with scrappy, but the tool I would use for web scraping with Python is BeautifulSoup. This tutorial seems decent enough, but you will need to understand basic web concepts like IDs, classes, tags, and tag attributes to get the most out of the tutorial: https://geekpython.medium.com/web-scraping-in-python-using-beautifulsoup-3207c038723b

W3Schools will also be your friend if you have questions about HTML/CSS selectors in general: https://www.w3schools.com/html/default.asp

Understanding regular expressions and/or xpath would also be very helpful, but are probably best considered to be extra credit in most cases.

I'll try to respond if you have any issues or questions, but hopefully that gives you enough to get started.

[–] aMockTie@beehaw.org 7 points 11 months ago

This seems super interesting and I’ve never heard of it before. Thanks for sharing!

Is this more of a table top game? I’d be interested to see it as a kind of MMO.

[–] aMockTie@beehaw.org 5 points 1 year ago (2 children)

I feel like the ammo aspect is a big part of what makes the game challenging. Like others have said, you can always get more ammo by using the opposite beam (i.e. killing enemies with the light beam gives dark beam ammo and vice versa), and you can also use the charge beam for a free shot even with 0 ammo.

All of that put together can lead to some of the most exciting boss battles where you're out or almost out of ammo but still have a chance to get the final blow in before they do. Infinite ammo wouldn't necessarily ruin the game overall in my opinion, exploring would still be fun and exciting. But it would certainly rob you of those exciting moments.

[–] aMockTie@beehaw.org 1 points 1 year ago

Oh yeah that's a great alternate option too if your mobile plan includes tethering. I've successfully used both Android and iOS tethering in the past and it was pretty seemless each time.

[–] aMockTie@beehaw.org 5 points 1 year ago (2 children)

Wi-Fi drivers are notoriously complicated on Linux in general, though things have been improving. But yeah if ‘iwctl device list’ comes up empty when you plan to use Wi-Fi to install Arch, especially if Ethernet isn't a viable temporary alternative because your device doesn't have an Ethernet port, you're in for a tough time.