是否有任何简单的方法来爬网所有 SharePoint 2010 网站信息并将其保存到数据库中?
我正在使用 Visual Studio 2010 和 Sharepoint 2010。我想知道是否有一种方法可以让 Web 部件抓取 SharePoint 网站中的所有数据,以便我可以将其保存到自定义数据库中。
I'm working with Visual Studio 2010 and Sharepoint 2010. I would like to know if there's a way to have a web part that crawls all the data within a SharePoint site so I can save it into a custom db.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您当然可以创建一个自定义 Web 部件来执行此操作。我不知道哪个开箱即用的 Web 部件可以工作。当我发现 SharePoint 列表源和目标时,我开始编写类似的内容。它是 SSIS SharePoint 适配器的 CodePlex 项目。我们不需要用于提取的用户界面,因此去年我们成功地使用它在 SQL Server 和 SharePoint 之间传输数据。
You can certainly create a custom web part that will do this. I do not know of an out of the box web part that will work. I began writing something like this when I found SharePoint List Source and Destination. It's a CodePlex project for an SSIS SharePoint adapter. We did not need a user interface for the extract, so we used it successfully last year for transferring data between SQL Server and SharePoint.
听起来您所需要做的就是使用 API、OOB Web 服务或客户端 OM 编写一些代码并直接访问列表。您采用哪种方法主要取决于代码的运行位置。
Sounds like all you need to do is use the API, OOB web services, or the Client OM to write some code and access the lists directly. Which approach you take depends mostly on where the code will run.
好吧,我找到了这篇文章 - SharePoint 的文档库树视图 Web 部件 - 它是显示网站内任何文档库的所有信息的 Web 部件。至少我知道如何爬取那种图书馆。
Well I found this article - Document Library Tree View Web Part for SharePoint - it is a Web Part that shows all the info of any of the document libraries within a site. At least I know how to crawl that kind of library.