Skip to content

Instantly share code, notes, and snippets.

@xto3na
Created September 25, 2015 19:35
Show Gist options
  • Save xto3na/737b5e3554f7f003b883 to your computer and use it in GitHub Desktop.
Save xto3na/737b5e3554f7f003b883 to your computer and use it in GitHub Desktop.
ParseHelper
using System.IO;
using System.Net;
namespace SEO_Analyzer.Helpers
{
public class ParseHelper
{
public static string DownloadHtml(string uri)
{
HttpWebRequest request = WebRequest.Create(uri) as HttpWebRequest;
HttpWebResponse response = request.GetResponse() as HttpWebResponse;
StreamReader sr = new StreamReader(response.GetResponseStream());
string html = sr.ReadToEnd();
return html;
}
}
}
@xto3na
Copy link
Author

xto3na commented Sep 29, 2015

(?<=> ).*?(?=<) - Для нахождения текста в тегах

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment