获取网上的图片如下
![艺术签名 [ahk]爬虫基础 post数据获取网站上的图片(获取艺术签名)_图片](https://file.cfanz.cn/uploads/gif/2023/04/25/4/50eNY0Leb6.gif)
获取post信息方法是,用chrome浏览器,F12抓包
![这里写图片描述 [ahk]爬虫基础 post数据获取网站上的图片(获取艺术签名)_ahk_02](https://file.cfanz.cn/uploads/png/2023/04/25/4/E764766G78.png)
/*
作者:sunwind
日期:2015年12月8日23:45:32
说明:获取艺术签名
*/
SetWorkingDir %A_ScriptDir%
url := "http://www.jiqie.com/a/re22.php"
InputBox,name,请输入,你的尊姓大名:
if name=
name=测试
data =
(LTrim Join&
id=%name%
id_=pihun
i_d=jiqie
id1=30
id2=905
id3=#0000FF
id4=#0000DD
id5=#0000AA
id6=#000077
)
Pbin := ComObjCreate("WinHttp.WinHttpRequest.5.1")
Pbin.Open("POST", url)
Pbin.SetRequestHeader("Content-Type", "application/x-www-form-urlencoded")
Pbin.Send(data)
out:=SubStr(Pbin.ResponseText,13,14)
urlimg:="http://www.jiqie.com" . out
fileimg:=name . ".gif"
UrlDownloadToFile,%urlimg%,%fileimg%
if ErrorLevel=1
MsgBox 错误
else
{
IfExist,%fileimg%
run %fileimg%
else
MsgBox 错误
}









