提取到当前站点所有页面的链接 [英] extract links to all pages of the current site

查看:80
本文介绍了提取到当前站点所有页面的链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要提取指向当前站点所有页面的链接(而不是指向其他站点的链接)
C#,VB


感谢

I need extract links to all pages of the current site (not links to other sites)
C#, VB


thanks

推荐答案

请参阅此链接
在该LinkFinder.Find中,您将获得页面中的所有链接
See this Link
In that LinkFinder.Find will give you all links from the page
List<LinkItem> list = new List<LinkItem>();
list = LinkFinder.Find("Your Page Source");


然后使用list.FindAll()方法提取所需链接,


and then Use list.FindAll() method to extracts links what ever you want


这篇关于提取到当前站点所有页面的链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆