How to get data from my local html file?
path: file:///C:/WORK/data/sample.html
inside the sample.html
<div class="row">
<label class="">Business Name:</label>
<div class="data">Sample Businessname</div>
</div>
<div class="row">
<label class="">Website Address:</label>
<div class="data"><a href="https://sample.com/" target="_blank">https://sample.com/</a> </div>
</div>
I need to get the word "Sample Businessname" and "https://sample.com/" and pass to variables using C#.
First install HtmlAgilityPack
please see the documentation
you can install by opening Package manager Console and using this command
Than this should do the trick you can test it in a new console application so you understand how it works
Please change the path variable to reflect your path to the file