What is loaded asynchronously, plainly, is what you see something on the web site, its source code and do not have those things, for example the following websites http://exercise.kingname.info/exercise_ajax_1.html this address from the Python Reptile development Getting to combat this book
this is a typical asynchronous loading
Our inquiries about its source code
to see, and did not include a text message, if we simply crawling with reptiles, what will happen?
Look, you can not see it in the text message, then how should we grab it?
We first open developer tools, switch to the Network
we try to refresh
you will find a little something extra, we first point to open ajax_1_backend
eh, you will find that there actually contain text information you want
us then opening ajax_1_postbackend
there are also text information.
We then open ajax_1_backend in the Headers,
take a look at this paragraph, since it is the address of the request, then we open this section address a look
and see, the data came out, we use the Python code to write about
is that simple.
Let us see the second message
eh, we can see that this is the way to this information POST http://exercise.kingname.info/ajax_1_postbackend hair, and submit data in JSON format, then we went on to write code for
our JSON way it passes the information to two, one name, one age