Python parsing Ajax requests with JSON parameters, the request is the URL of the post (note: The JSON format of the parameter)

Source: Internet
Author: User
Import requests# tag = ' http://exercise.kingname.info/exercise_ajax_1.html ' #最开始的网址, below two for child link URL  = '/http/ Exercise.kingname.info/ajax_1_backend ' url2 = ' http://exercise.kingname.info/ajax_1_postbackend ' req = Requests.get ( URL) of print (req.text)params = {    ' name ': ' xx ', ' Age ':' req2 ' = Requests.post (url2,json=params). Textprint (REQ2)
Note: The Red dash section is key, and you can also use Postman to parse it.
Postman Link: HTTP://OUAPI.COM/TOOL/GP, the use of the method is very simple, here I have introduced, will not be able to Baidu can also find me.

  

Python parsing Ajax requests with JSON parameters, the request is the URL of the post (note: The JSON format of the parameter)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.