Get the raw text of the source code of the sites

I want the source code of the sites like this:
(right-clicking on the browser and selecting “view page source”)
view-source:https://defold.com/

I want to get this by Defold in code, but I don’t know how to do it!
Look at this images:


I’m not sure I understand what you are asking. You want to download the source code for www.defold.com?

The website is open source and the source files are located here: https://github.com/defold/defold.github.io

We use GitHub Pages to generate the final website.

That was just an example!:man_facepalming:
I want to have access to the raw text of any site; For example, I can check the price of digital currencies or I want to put a part of the text of my blog in the program, or anything else.:smirk:

You can probably use html5.run().

I don’t want to execute a string expression!:flushed: I want to get the text code of the sites in the form of a string; That is, the same text that we see by right-clicking on any page in browsers and selecting “view page source”. (as I showed by 2 images!)
My main intention is actually to make a digital currency payment tool inside the program, which I have already made with the Godot game engine, which you can see from the link below::point_down:
https://github.com/bdshahab/in-app-purchasing-by-crypto

Looks like you use HTTPRequest on Godot.

This is the http api for Defold:

Of course it is! But the main question is how to make such a program with Defold game engine?!

By starting to learn Defold and Lua perhaps?
Go ahead and begin with those:

1 Like

I’m here to learn!:joy:
Finally, I find out my answer by myself!:smiley::point_down:
I have to use: response.response
in:
https://defold.com/ref/stable/http/#http.request:url-method-callback-%5Bheaders%5D-%5Bpost_data%5D-%5Boptions%5D

1 Like

Great! :slight_smile:

If you are planning to parse data from the 3. party website, I must say it might be illegal and may cause a trouble on your behalf. Also any changes on this website may cause your parser to fail. I would recomend that you to contact with the 3. party and request an official api access.

3 Likes

Those APIs are not free or unlimited!
Although I’m using it for free and normal activities not for some DNS attacks!
I just want to be able verify payment in digital currency without need of paying a penny.:smirk:
Although paying without any rules or needing banks, could be also illegal! But I don’t care.:grin:

long live anarchy!

3 Likes