Advertisement
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 System.Web;
- using System.Net;
- using HtmlAgilityPack;
- namespace VK
- {
- class Program
- {
- static void Main(string[] args)
- {
- HtmlWeb htmlWeb = new HtmlWeb();
- HtmlDocument doc = htmlWeb.Load("http://vk.com/id1");
- HtmlNodeCollection links = doc.DocumentNode.SelectNodes("//a[@href]");
- foreach (HtmlNode link in links)
- {
- Console.WriteLine(link.Attributes["href"].Value);
- }
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement