Get html that is created via AJAX in webclient

I often visit the site to look at things. I thought to myself: โ€œHold on, I can program. Why do I go to this site manually when I can write a piece of software that does this for me?โ€

And so I started. I use C #, so I found WebClient and Uri.

I managed to get the source code for the site, but there was a problem that the specific data I'm looking for is generated through AJAX after loading the source code.

So my problem. How can I get this code if I need to request it first through an AJAX call?

+3
source share
1 answer

:

HTML , , .

# 1 , , , , :

(, , ). , , " " . CTRL + F , , , "autodecode" , , , .

, Fiddler "" . . , . , , . , " Fiddler" . . , , . , , - , . , .

. Host:, . Cookie: CookieContainer. (, UserAgent:, Accept: .. .

+2

Source: https://habr.com/ru/post/1747997/


All Articles