Get text need in html with .NET Core

Can Yüksel
Apr 26, 2022

Hi Everyone,
Today I’m going to tell you how you can pull texts in html. Firstly click on Create A New Project.

After choosing Asp.Net Core Web API . Next -> Next. Now Opened our Project.

After these steps click on package manager console. We write “Install-Package HtmlAgilityPack”.

Now , add new controller for our Project. Right click on our Project. Click on Add-> New item
after Searching Controller we choose empty controller.

And Finally code writing in new added controller like in the picture. Now Run for our Project.

Now , our project is ready.

Let’s test our project.

the Result.

Give us string array about all of texts for selected path in html.

See you in my next post. Goodbye.

--

--

Can Yüksel

I’m Mining and software Engineer. I’m study at Dokuz Eylül University. I share the information I learned while developing myself in the field of software.