Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Net.Http;
- class Scraper
- {
- static async Task Main()
- {
- string url = "https://scrapeme.live/shop/";
- using (HttpClient client = new HttpClient())
- {
- HttpResponseMessage response = await client.GetAsync(url);
- string htmlContent = await response.Content.ReadAsStringAsync();
- Console.WriteLine(htmlContent);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement