String url = "https://www.12306.cn/index/script/core/common/station_name_v10163.js";
string connection = null;
try
{
var post = new Zeus.Sys.HttpRequest.HttpGet()
{
Url = url,
};
connection = post.Request();
string[] traiNameGroup = connection.Split('@');
for (int i = 0; i < traiNameGroup.Length; i++)
{
String[] split = traiNameGroup[i].Split('|');
if (split.Length > 2)
{
Trainsite trainsite = new Trainsite();
trainsite.StationName = split[1];
trainsite.StationPinyin = split[3];
trainsite.StationCode = split[2];
trainsite.StationAbbreviation = split[0];
_ITrainsite.AddTrainsite(trainsite);
}
}
}
catch (Exception e)
{
}
获取火车城市站点代码
最新推荐文章于 2023-12-29 21:19:52 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)