Do a Google search for C# HTML parsers. The HTML Agility Pack has been around a long time and has code examples.
Web Scraping using c# api method
I am trying to read other website data using asp.net c#.
Web login url: https://sts.defhc.com/account/login
after login need to redirect: https://www.defhc.com/hospitals/2868000 because after login this url i have some information that i need to read html.
I have tried below code but nothing output is coming for to read any html
```
for more information also i have posted into stack overflow but not got good answer
2 answers
Sort by: Most helpful
-
-
Bruce (SqlWork.com) 61,731 Reputation points
2023-05-11T15:36:43.8166667+00:00 the login request is not correct. you need to reverse engineer the login. in the sample url, the username is passed in the url, the password in the form, and a anti-forgery field is required. you need to do a get of login. and read the session cookie, and parse out the validation token. then form (not json) post with the session cookie, and data in proper format.