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
You can get the website source code in this way:
Or you can view it in a webview using:
Was he talking about API?
This is the second time I didn’t realize it
I think I need to wake up … 12:20
As the URL isn’t an API , so it should return the source , 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.
I never thought about it, maybe because I didn’t have to use it that way. In what situation do we use this?
When we want to see the source code of a web page
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.
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 http://www.appinventor.org/content/CourseInABox/Intro 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: http://www.appinventor.org/content/howDoYou/eventHandling .
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.
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