Hello. Made a parser that gets the contents of the block and converts it into text. Then I chose fields of interest from this text, one of which was “size”.
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { public void button1_Click(object sender, EventArgs e) { using (HttpClientHandler handler = new HttpClientHandler() { AllowAutoRedirect = true, AutomaticDecompression = System.Net.DecompressionMethods.GZip | System.Net.DecompressionMethods.Deflate }) { using (HttpClient client = new HttpClient(handler) { BaseAddress = new Uri("http://rutor.is/") }) { HtmlAgilityPack.HtmlDocument HD = new HtmlAgilityPack.HtmlDocument(); HD.LoadHtml(client.GetStringAsync("/torrent/496895/fizruk-03x01-05-iz-20-2016-satrip").Result); //можно делать все асинхронно. var element = HD.DocumentNode.SelectSingleNode("//table[@id='details']");//искомый элемент richTextBox1.Text = element.InnerText; } } richTextBox1.SaveFile("file.txt", RichTextBoxStreamType.PlainText); string text = File.ReadAllText("file.txt", Encoding.GetEncoding(1251)); Encoding ascii = Encoding.UTF8; Encoding unicode = Encoding.Unicode; string[] lines = text.Split(new[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries); richTextBox1.Clear(); for (int i = 0; i<lines.Length; i++) { this.richTextBox1.Text += lines[i] + "\n"; } richTextBox1.SaveFile("file.txt", RichTextBoxStreamType.PlainText); StreamReader sr = new StreamReader("file.txt", System.Text.Encoding.Default, false); string format_prim = "Формат:"; string reziser_prim = "Режиссер:"; string strana_prim = "Страна:"; string size_prim = "Разме"; string line = ""; string format = ""; string reziser = ""; string strana = ""; string size = ""; int formnatLenght = format_prim.Length; int reziserLenght = reziser_prim.Length; int stranaLenght = strana_prim.Length; int sizeLenght = size_prim.Length; while (!sr.EndOfStream) { line = sr.ReadLine(); if (line.Contains(format_prim)) { format = line.Substring(formnatLenght + 1); } if (line.Contains(reziser_prim)) { reziser = line.Substring(reziserLenght + 1); } if (line.Contains(strana_prim)) { strana = line.Substring(stranaLenght + 1); } if (line.Contains(size_prim)) { size = line.Substring(sizeLenght + 1); } } MessageBox.Show(format); MessageBox.Show(reziser); MessageBox.Show(strana); MessageBox.Show(size); } } } } So, the field "size" is obtained in the form "Size 1.40 GB (1500499968 Bytes)", which prevents me from processing it. Can someone tell me how to get these 1.40 GB without all the rest?