Add project files.
This commit is contained in:
12
CsharpCorne/CsharpCorner.csproj
Normal file
12
CsharpCorne/CsharpCorner.csproj
Normal file
@ -0,0 +1,12 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="HtmlAgilityPack" Version="1.11.34" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
17
CsharpCorne/Program.cs
Normal file
17
CsharpCorne/Program.cs
Normal file
@ -0,0 +1,17 @@
|
||||
using HtmlAgilityPack;
|
||||
using System;
|
||||
using System.Linq;
|
||||
|
||||
namespace CsharpCorner
|
||||
{
|
||||
class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
var web = new HtmlWeb();
|
||||
var doc = web.Load("https://www.avanza.se/aktier/lista.html");
|
||||
var headerNames = doc.DocumentNode
|
||||
.SelectNodes("//a[@class='ellipsis']").ToList();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user