Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using xNet;
- using HtmlAgilityPack;
- namespace WebApp.Modules
- {
- class Requests
- {
- public string Get(string url)
- {
- HttpRequest req = new HttpRequest();
- return req.Get(url).ToString();
- }
- public HtmlDocument HtmlLoad(string url)
- {
- HtmlWeb web = new HtmlWeb();
- HtmlDocument doc = web.Load(url);
- return doc;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment