You could use something as simple as Regex to parse out values from HTML, but a far more robust way of doing is using something like HtmlAgilityPack to parse it for you, which will give you a queryable tree of HTML nodes that you can, for example, get all the inner text for every anchor tag like the following:

using HtmlAgilityPack;
using System;
using System.Linq;
const string html = @"
<html>
<span class=""featured-cat""><i class=""schema-lite-icon icon-tags""></i>
<a href=""https://bitcoin-tidings.com/category/dappradar"" rel=""category tag"">dappradar</a>,
<a href=""https://bitcoin-tidings.com/category/defi"" rel=""category tag"">DeFi</a>,
<a href=""https://bitcoin-tidings.com/category/diversification"" rel=""category tag"">Diversification</a>,
<a href=""https://bitcoin-tidings.com/category/news"" rel=""category tag"">News</a>,
<a href=""https://bitcoin-tidings.com/category/nft"" rel=""category tag"">nft</a>,
<a href=""https://bitcoin-tidings.com/category/ntf"" rel=""category tag"">ntf</a>,
<a href=""https://bitcoin-tidings.com/category/play-to-earn"" rel=""category tag"">play to earn</a>,
<a href=""https://bitcoin-tidings.com/category/solana"" rel=""category tag"">Solana</a>,
<a href=""https://bitcoin-tidings.com/category/terra"" rel=""category tag"">Terra</a>
</span>
</html>
";
HtmlDocument doc = new HtmlDocument();
doc.LoadHtml(html);
IEnumerable<HtmlNode> anchors = doc.DocumentNode.SelectNodes("//a").Cast<HtmlNode>();
foreach (HtmlNode cell in anchors) {
Console.WriteLine(cell.InnerText);
}
// Taken from: https://dotnetfiddle.net/Vyc2zX


Here are more samples to help you familiarise: https://html-agility-pack.net/online-examples


Source
https://docs.microsoft.com/en-us/answers/questions/583272/downloading-selected-data-from-the-website.html


Created: 08/10/2021 16:54:17
Page views: 75
CREATE NEW PAGE