没得这个参数想通过 get/post方式从问财获取数据获取不到,只有搞到这个参数才可以。
这个值是js生成的,扣出来很麻烦,
那么我们可以不扣,直接用。
用 webkit 打开,然后从cookie里获取这个值,拿到这个值之后。
再去post,get就可以了。
重要代码:
v = null;
this.Invoke(new Action(() =>
{
webKitBrowser1.Navigate("https://www.iwencai.com/");
}));
private void webKitBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
var cookieStr=webKitBrowser1.StringByEvaluatingJavaScriptFromString("document.cookie");
Regex regex = new Regex(@"v=(?<v>[\w-_]+)");
Match match = regex.Match(cookieStr);
if (match.Success)
{
v = match.Groups["v"].Value;
textBox1.Text &