#coding:utf-8
import requests
import time
headers = {'Accept': 'text/html,application/xhtml+xml,*/*',
'Accept-Encoding': 'gzip, deflate',
'Accept-Language': 'zh-CN',
'Cache-Control': 'no-cache',
'Connection': 'keep-alive',
'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko'}
s = requests.Session()
s.headers.update(headers)
# s.auth = ('superuser', '123')
s.get('http://localhost/phpwind85/')
s.get("http://localhost/phpwind85/login.php")
URL = 'http://localhost/phpwind85/login.php'
post_data = {
"forward":"",
"jumpurl":"http://localhost/phpwind85/",
"step":2,
"lgt":0,
"pwuser":"admin",
"pwpwd":"123456",
"hide
python:使用http请求实现phpwind自动登录及发帖
最新推荐文章于 2022-06-01 20:51:31 发布