private void Populate() { Connect(); for (; i < 551; i += 1) { byte[] _bytes = File.ReadAllBytes("1 Sended.html"); Helper.Replace(ref _bytes, "_page_", "/forum/memberlist.php?&order=asc&sort=username&page=" + i, 1); _Socket.Send(_bytes.Save()); string s = Http.ReadHttp(_Socket).ToStr().Save(); MatchCollection ms = Regex.Matches(s, @"<a href=""member.php\?u=\d+"">(.+?)</a>"); ms.Count.Trace(); foreach (Match m in ms) { string s2 = HttpUtility.HtmlDecode(m.Groups[1].Value); if ((!_ListA.Contains(s2)).Trace()) _ListA.Add(s2); } "".Trace(); _ListA.Flush(); } }
private void Populate() { Connect(); for (; i < 551; i += 1) { byte[] _bytes = File.ReadAllBytes("1 Sended.html"); Helper.Replace(ref _bytes, "_page_", "/forum/memberlist.php?&order=asc&sort=username&page=" + i, 1); _Socket.Send(_bytes.Save()); string s = Http.ReadHttp(_Socket).ToStr().Save(); MatchCollection ms = Regex.Matches(s, @"<a href=""member.php\?u=\d+"">(.+?)</a>"); ms.Count.Trace(); foreach (Match m in ms) { string s2 = HttpUtility.HtmlDecode(m.Groups[1].Value); if ((!_ListA.Contains(s2)).Trace()) { _ListA.Add(s2); } } "".Trace(); _ListA.Flush(); } }