using Ruanm.Framework.Http;
using HtmlAgilityPack;
public string html = string.Empty;
public string findlongTailChartText;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
html= HttpHelper.DownLoadHtml("https://data.chinaz.com/keyword/analysis/%E7%9C%BC%E5%BD%B1");
if (string.IsNullOrEmpty(html))
{ }
HtmlDocument document = new HtmlDocument();
document.LoadHtml(html);
//获取js的数据
string scriptText = "//*[local-name() = 'script' and contains(.,'longTailChart')]";
HtmlNode scriptHtml = document.DocumentNode.SelectSingleNode(scriptText);
if (scriptHtml != null)
{