|
https://www.mcxindia.com/market-data/market-watch
上面的网站需要采集列表里面显示的一些价格这样的数据!
需要post方式,但是抓包没看到有什么参数,不传参数获取不到内容
HttpHelper http = new HttpHelper();
HttpItem item = null;
//参数类
item = new HttpItem()
{
URL = "https://www.mcxindia.com/backpage.aspx/GetMarketWatch",//URL 必需项
Encoding =null ,//编码格式(utf-8,gb2312,gbk) 可选项 默认类会自动识别
Method = "Post",//URL 可选项 默认为Get
Referer = "https://www.mcxindia.com/market-data/market-watch",
ContentType = "application/json",//返回类型 可选项有默认值
UserAgent = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2900.0 Iron Safari/537.36",
Postdata = ""
};
HttpResult result = http.GetHtml(item);
采集这块我还是新手!请大神指教这个数据怎么采集!
|
|