Several crack method loaded asynchronously

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

Here Insert Picture Description
Our inquiries about its source code
Here Insert Picture Description
to see, and did not include a text message, if we simply crawling with reptiles, what will happen?
Here Insert Picture Description
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
Here Insert Picture Description
we try to refresh
Here Insert Picture Description
you will find a little something extra, we first point to open ajax_1_backend
Here Insert Picture Description
eh, you will find that there actually contain text information you want
us then opening ajax_1_postbackend
Here Insert Picture Description
there are also text information.
We then open ajax_1_backend in the Headers,
Here Insert Picture Description
take a look at this paragraph, since it is the address of the request, then we open this section address a look
Here Insert Picture Description
and see, the data came out, we use the Python code to write about
Here Insert Picture Description
is that simple.
Let us see the second message
Here Insert Picture Description
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
Here Insert Picture Description
our JSON way it passes the information to two, one name, one age

Released two original articles · won praise 12 · views 967

Guess you like

Origin blog.csdn.net/weixin_42578981/article/details/105021870