2007年7月14日星期六

SpiderinNET

http://msdn.microsoft.com/msdnmag/issues/02/10/SpiderinNET/
微软网站上的一个Spider代码,用VB.NET编写的。有源代码和程序下载。
SUMMARY

Visual Basic .NET comes loaded with features not available in previous versions, including a new threading model, custom class creation, and data streaming. Learn how to take advantage of these features with an application that is designed to extract information from Web pages for indexing purposes. This article also discusses basic database access, file I/O, extending classes for objects, and the use of opacity and transparency in forms.


Conclusion

My company's clients currently use Spider to retrieve information from local, state, and national sites. With some tweaking, the spider can be used to get address listings from public Yellow Pages, or articles related to certain topics from all over the Web. It could even be used to retrieve newsgroup postings from a news server. Any Web page can be crawled (as long as you obtain permission for copyrighted material first). Information obtained can be placed in a database for later analysis.

Visual Basic .NET comes with many new and exciting features. With time and a little perseverance, you'll learn when to use each. Improved array and error handling, GUI tricks, and stream support are just some of the tools that you have at your disposal when programming in Visual Basic .NET. Go out and discover some more for yourself.
Back to top

没有评论: