Help finding underlying source code of casino sites

Engineer

Super Moderator
Joined
Dec 14, 2006
Messages
3,210
Reaction score
400
Does anyone have a good tool or a good method for finding the underlying source data of a page that has javascript-generated content?

It's easier if I explain with an example.

Go to https://www.allslotscasino.com/slot-machines

View source (Control U), and then search (Control F) for the first slot game in the list: Immortal Romance.

Nothing...

The javascript that generates the page is getting it from somewhere -- the question is, where? Where is the javascript or JSON file that the list of games is coming from? Does anyone know of a good way to find where this content is? Not just for this site, but for any site I want?

Sometimes I can find what I am looking for by viewing the source code and finding an included file, or by using Chrome DevTools and looking at the network activity.

Why they are doing it this way instead of using regular HTML isn't clear to me. It is cloaking, for sure, but why they are doing it, I'm not quite sure. To speed up the page load time, maybe? Okay, but by doing this, Google (I think) can't see any of the game names, which will negate any benefit they might get by having a falsely-fast load time. The page loads quick, great, but there's nothing here worth seeing....

The reason I want to find the underlying data source is because it is far easier to run a daily script that collects all of the available game names, instead of manually putting them into my database.

Some sites have over 1,000 games from 30 different providers, and it isn't possible to manually keep track of the lists anymore.

Sometimes brands will add a game, keep it for a month (or sometimes literally one single day), and then remove it. *cough* bet365, Leo Vegas. :rolleyes:

So, if anyone has tips on how to find the source, please let me know.

I have asked several programs for a "feed" of their games -- some do it, no problem, but others act like you are asking for the moon. Really it shouldn't be that difficult -- just use the same query you currently use to display the list of available games inside the casino, and publish it to a regular URL that shows the complete list.

Thanks in advance.
 

Guard Dog

Guard Dog
Staff member
Joined
Dec 13, 2006
Messages
11,228
Reaction score
3,144
You could try using httrack and downloading the complete page, but it could very well be (and most likely is) server-side code that you won't be able to get to. There are other ways to scrape that information out of there like Selenium, but that requires automation and if they change the core HTML code - it will mess up your 'bot'.
 

Guard Dog

Guard Dog
Staff member
Joined
Dec 13, 2006
Messages
11,228
Reaction score
3,144
Looks to me like they are using .NET and an API. That means they are probably pulling it directly from a DB. I'm guessing, but looks similar to code I have seen and written myself.
 

AussieDave

24 years & still going!
Joined
Nov 28, 2013
Messages
4,992
Reaction score
3,532
Viewing the source code, they're using *.svg files. A 2 demensional graphic, which textually describes an image based on XML format.

Edit:
Though they'd be using an API too, which would connect to a db. But pointing you to that url, much less the code, is impossible, cause as far as I can tell (and what BS/FA/FL use, as do most MGS casinos) it's written in dynamic *.asp (active server pages) or *.aspx (active server pages extended).

In Layperson's terms:
The code your viewing will only ever be the output. This is compiled on the server. The processes/code to spit out the compiled code, is hidden.
 
Last edited:

juegos

Member
Joined
Jun 7, 2017
Messages
44
Reaction score
18
Seems server sided indeed with the API code forwarded from the backend.
 

Guard Dog

Guard Dog
Staff member
Joined
Dec 13, 2006
Messages
11,228
Reaction score
3,144
speed. Let the code run on the server instead of in the browser - much faster.
 
Top