minhnhatisme

Untitled

May 11th, 2021
689
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using xNet;
  7. using HtmlAgilityPack;
  8.  
  9. namespace WebApp.Modules
  10. {
  11.     class Requests
  12.     {
  13.         public string Get(string url)
  14.         {
  15.             HttpRequest req = new HttpRequest();
  16.             return req.Get(url).ToString();
  17.         }
  18.  
  19.         public HtmlDocument HtmlLoad(string url)
  20.         {
  21.             HtmlWeb web = new HtmlWeb();
  22.             HtmlDocument doc = web.Load(url);
  23.             return doc;
  24.         }
  25.     }
  26. }
  27.  
RAW Paste Data