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 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!
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.
I don’t want to execute a string expression! 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:
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:
I’m here to learn!
Finally, I find out my answer by myself!
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
Great!
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.
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.
Although paying without any rules or needing banks, could be also illegal! But I don’t care.
long live anarchy!