dags att checka in
This commit is contained in:
24
WebClientScraper/Program.cs
Normal file
24
WebClientScraper/Program.cs
Normal file
@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Net;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WebClientScraper
|
||||
{
|
||||
class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
using var client = new WebClient();
|
||||
|
||||
client.DownloadStringCompleted += (sender, e) =>
|
||||
{
|
||||
Console.WriteLine(e.Result);
|
||||
};
|
||||
|
||||
string url = "https://finansportalen.millistream.com/shares.php";
|
||||
client.DownloadStringAsync(new Uri(url));
|
||||
|
||||
Console.ReadLine();
|
||||
}
|
||||
}
|
||||
}
|
||||
8
WebClientScraper/WebClientScraper.csproj
Normal file
8
WebClientScraper/WebClientScraper.csproj
Normal file
@ -0,0 +1,8 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
Reference in New Issue
Block a user