python requests 练习

python requests 练习,第1张

python requests 练习

小结: 像这种垃圾网站,可以利用Fiddler 抓包,jmeter或postman进行请求,再利用python requests写成代码形式练习。。。

# 获取积分首页
# import requests
# while True:
#     url = 'https://vvip.maixcj.com/'
#     res = requests.get(url=url,verify=False)
#     print(res.status_code)


# 获取订单界面
# import requests
# while True:
#     url = 'https://vvip.maixcj.com/order/pay.asp?'
#     data = {
#         'order_no': '20211212133829579',
#         'mob': '13610309429',
#         'nowurl': 'https://vvip.maixcj.com/L008.htm'
#         }
#     res = requests.get(url=url, params=data, verify=False)
#     print(res.text)


# 查看我的订单
# import requests
# while True:
#     url = 'https://vvip.maixcj.com/app/checkorder/index.asp'
#     data = {
#         'tel':13610309429
#         }
#     res = requests.post(url=url, data=data, verify=False)
#     print(res.text)


# 联系客服
# import requests
# while True:
#     url = 'https://www14c1.53kf.com/webCompany.php?'
#     data = {
#     "arg":10246952,
#     "style": 1,
#     "kf_sign":'TI5MjMTYzOg3OTExNzk3MzQ0MTcwMDAyNzIyNDY5NTI%3D'
#     }
#     res = requests.get(url=url, params=data, verify=True)
#     print(res.text)
PS:仅供学习用途,虚假网站请勿上当受骗

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5658781.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-16
下一篇 2022-12-16

发表评论

登录后才能评论

评论列表(0条)

保存