顯示具有 Spider Framework 標籤的文章。 顯示所有文章
顯示具有 Spider Framework 標籤的文章。 顯示所有文章

2009年5月4日 星期一

WikiSpider in Traditional Chinese version

As you known, Wikipedia has a plenty of versions in many languages. I also make another configuration for Traditional Chinese(zh_TW) as the following link:

http://code.google.com/p/spiderframework/downloads/detail?name=wiki_spider_zh_TW.xml&can=2&q=#makechanges

What you need to do is just replace the spider.xml with the downloaded one, please rename it to spider.xml.

The output of this configuration file is the same with English version, the plain text of wiki page.

2009年5月3日 星期日

Web Spider for Wiki

Recently, I wrote a web spider to crawling text from wikipedia website. This spider runs at 500ms per page and saves web page as text data which reside in the center area, like the following page:


The useless information are cropped.

After saving a page, this spider clicks the "Random article" link, see blow, to get another wiki content.



I had slow this spider down for 500ms after a page. After 10,000 random pages downloaded, this spider will stop running. So, it needs more than 5,000 seconds to finished the task.

You can download the source code from http://code.google.com/p/spiderframework/downloads/list.

This is written in C# of Visual Studio 2005.

If you need the binary code directly, please email me. I can build it for you.