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:
view-source:url
Wait ā¦
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 ?
Okā¦
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 .
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
Taifun
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.
Taifun
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
Taifun