Advertisement
dereksir

Untitled

Nov 27th, 2023
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.42 KB | None | 0 0
  1. using System;
  2. using System.Net.Http;
  3.  
  4. class Scraper
  5. {
  6.     static async Task Main()
  7.     {
  8.         string url = "https://scrapeme.live/shop/";
  9.  
  10.         using (HttpClient client = new HttpClient())
  11.         {
  12.             HttpResponseMessage response = await client.GetAsync(url);
  13.  
  14.             string htmlContent = await response.Content.ReadAsStringAsync();
  15.             Console.WriteLine(htmlContent);
  16.         }
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement