Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
using (var client = new System.Net.WebClient() { Encoding = Encoding.UTF8 })
{
// Скачиваем код страницы
var page = client.DownloadString("http://PageAddress");
// Находим ссылку
var source = System.Text.RegularExpressions.Regex.Match(page, $"(?<=href=\").*?\\\.mp3(?=\")").Value;
// Скачиваем файл
client.DownloadFile(source, "audio.mp3");
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question