Presentation is loading. Please wait.

Presentation is loading. Please wait.

Introduction to Nutch Zhao Dongsheng 2008.9.29.

Similar presentations


Presentation on theme: "Introduction to Nutch Zhao Dongsheng 2008.9.29."— Presentation transcript:

1 Introduction to Nutch Zhao Dongsheng

2 Summary What's Nutch Nutch's architecture How to use Nutch
About the first homework

3 What's Nutch Written in java Open-source project
An Application that can build SE Behind a lot of web sites

4 What's Nutch Lucene and Nutch Nutch grow out of Lucene
Both open-source project Both written in java But Lucene is a Java library for text indexing and search Nutch is an Application Nutch uses lucene for indexing

5 Nutch's architecture

6 Nutch's core components
Fecher Requests web pages Parses and extracts links Web DB Page DB Used for fetch sheduling Link DB Store link gragh Store anchor text with each link Link-analysis and Anchor text indexing

7 Nutch's core components (cont.)‏
Indexer Creates inverted index Uses Lucene Searcher Finds relelant docs quickly Ranks the docs Summarizing

8 Functions Nutch supports
Politeness when crawling Duplicates removing PageRank analysis Distributed searching Summarizing ......

9 Nutch's Technical Goals
Fetch several billion pages per month Maintain an index of these pages Search that index up to 1000 times per second Provide very high quality search results Operate at minimal cost

10 Source code & API Source Dirs crawl/Crawl.java fetcher/Fetcher.java
analysis crawl html plugin scoring segment tools fetcher indexer net parse protocol searcher ... crawl/Crawl.java fetcher/Fetcher.java

11 How to use Nutch Download & unpack Configure Nutch required JVM
Set environment variables Configure Specify root URLs Specify URLs filters Optionally specify Number of threads Levels to crawl Fetch delay

12 How to use Nutch (cont.)‏
Root URLs Example URL Filter Example crawl-urlfilter.txt -^(file|ftp|mailto): - \.(gif|GIF|jpg|JPG|png|PNG|ico|ICO|css|sit|eps|wmf| zip|ppt|mpg|xls|gz|rpm|tgz|mov|MOV|exe|jpeg|JPE G|bmp|BMP)$ +^

13 How to use Nutch (cont.)‏
Run Nutch Just a command line bin/nutch crawl myurl.txt -dir mycrawl -depth 4 >& crawl.log Use Tomcat to experience!

14 Home page

15 Search result

16 Score Explanation

17 Anchor texts with a link

18 About the first Homework
About web crawling Familiar with Nutch & java Fetch blog/bbs etc ? Need your advice!

19 Q & A thanks!


Download ppt "Introduction to Nutch Zhao Dongsheng 2008.9.29."

Similar presentations


Ads by Google