京东购物车信息提取工具

当购物车东西很多时,既不能排序,也无法管理,做了一个小工具,解析网页,把所有的项目提取出来。

image

把网页源码粘贴进去即可:

image

解析结果:

image

其实,解析代码只有一句:

MatchCollection mas = StringUtil.Matches(s, "<img alt="(*aa*)" clstag="clickcart");
for (int i = 0; i < mas.Count; i++)
{
o += mas[i].Groups["aa"].Value + " ";
}

下载地址(frameworkv2.0)

原文地址:https://www.cnblogs.com/jetz/p/6270638.html