Website source code

how to get the source code of website? I want to check that whether a particular class is existing in source code or not.

I cant Understand What Are You telling

1 Like

You can get the website source code in this way:

Or you can view it in a webview using:


Wait …
Was he talking about API? :joy:
This is the second time I didn’t realize it :joy:
I think I need to wake up … 12:20

1 Like

As the URL isn’t an API , so it should return the source :sweat_smile:, here is an example:
In fact,if you tried to use an API link in a web browser ( of course an API that doesn’t require headers, authentication,etc…) the text returned from the api would be displayed, but, when you use a normal webpage, the source would be returned.Which the browser would use for displaying the web page .That’s why when we use a GET request the source code is returned. :slightly_smiling_face:


I never thought about it, maybe because I didn’t have to use it that way. In what situation do we use this?

1 Like

When we want to see the source code of a web page :wink:

How do we do it normally in the browser ?

On a computer, right click on the page and “view page source”

Yes I know. My text was not very clear. Yes in the browser I do this and check for errors in the “inspect source code” option of the browser.

I was comparing Mohamed’s block with the option to view browser code.
If they are the same thing, why use it?
Okay. Everything cleared up. :thumbsup:

i Need to see the source code in label text

in the Web.GotText event assign the response content to the label text property

A very good way to learn App Inventor or Kodular is to read the free Inventor’s Manual here in the AI2 free online eBook App Inventor 2 Book: Create Your Own Android Apps … the links are at the bottom of the Web page. The book ‘teaches’ users how to program with AI2 blocks.
There is a free programming course here and the aia files for the projects in the book are here: App Inventor 2 Book: Create Your Own Android Apps
How to do a lot of basic things with App Inventor are described here: .

Also do the tutorials Tutorials for MIT App Inventor to learn the basics of App Inventor, then try something and follow the Top 5 Tips: How to learn App Inventor


1 Like

try this

but how can i store it as a text.

what exactly are you talking about now?

It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.

To get an image of your blocks, right click in the Blocks Editor and select “Download Blocks as Image”. You might want to use an image editor to crop etc. if required. Then post it here in the community.



I want to serach a particular text available in the source code of website.

In Chrome, you can type:
view-source:<your-url> to see the source code.

1 Like

I android app

you already received several suggestions…
now it is your turn to try something, see also tip 2 here App Inventor: How to Learn | Pura Vida Apps
and if you got stuck, then post a screenshot of your relevant blocks