using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Threading; using System.Net; using System.Text.RegularExpressions;
namespace ConsoleApplication4 { class Program { public List<string> adresListesi; private static bool durum; private static int sayac; static void Main(string[] args) {
adresleriBul();
Console.Read();
}
private async static void adresleriBul() { Uri adress=new Uri("http://www.yg.yenicaggazetesi.com.tr/yazargoster.php?haber=24557"); var icerik = await new WebClient().DownloadStringTaskAsync(adress); var eslesimler = Regex.Matches(icerik, @"(?<Protocol>\w+):\/\/(?<Domain>[\w@][\w.:@]+)\/?[\w\.?=%&=\-@/$,]*", RegexOptions.IgnoreCase);
foreach (Match eslesim in eslesimler) { //adresListesi.Add(eslesim.Value);
Console.WriteLine(eslesim); }
durum = true; }
} }
Sen adresin sonuna txt dosyası eklersin olur biter
DiPNoT : c#
DH forumlarında vakit geçirmekten keyif alıyor gibisin ancak giriş yapmadığını görüyoruz.
Üye Ol Şimdi DeğilÜye olduğunda özel mesaj gönderebilir, beğendiğin konuları favorilerine ekleyip takibe alabilir ve daha önce gezdiğin konulara hızlıca erişebilirsin.