Closed MahmoudMabrok closed 6 months ago
I want to get data from YouTube page and YouTube send different html content , so I need to simulate that a browser open the link.
I did not get a sample to how to use httpRequestBuilder
httpRequestBuilder
Please check https://ktor.io/docs/request.html#parameters
Ksoup.parseGetRequest("https://xxxxx.com", httpRequestBuilder = { headers { append("User-Agent", "XXXXXXX") } })
I want to get data from YouTube page and YouTube send different html content , so I need to simulate that a browser open the link.
I did not get a sample to how to use
httpRequestBuilder