Created
September 25, 2015 19:35
-
-
Save xto3na/737b5e3554f7f003b883 to your computer and use it in GitHub Desktop.
ParseHelper
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(?<=> ).*?(?=<) - Для нахождения текста в тегах