请教一个nutch抓取问题
想用nutch爬虫抓取http://news.163.com/rank/这个网页,做法如下:
1.在urls/seed.text 文件中增加路径:http://news.163.com/rank/
2.使用命令抓取,命令为: ./bin/nutch crawl urls -dir crawl_163_rank -depth 3 -threads 3 -topN 5
抓取结果为:
[root@localhost apache-nutch-1.7]# ./bin/nutch crawl urls -dir crawl_163_rank -depth 3 -threads 3 -topN 5
solrUrl is not set, indexing will be skipped...
crawl started in: crawl_163_rank
rootUrlDir = urls
threads = 3
depth = 3
solrUrl=null
topN = 5
Injector: starting at 2014-01-01 03:21:13
Injector: crawlDb: crawl_163_rank/crawldb
Injector: urlDir: urls
Injector: Converting injected urls to crawl db entries.
Injector: total number of urls rejected by filters: 1
Injector: total number of urls injected after normalization and filtering: 0
Injector: Merging injected urls into crawl db.
Injector: finished at 2014-01-01 03:21:18, elapsed: 00:00:04
Generator: starting at 2014-01-01 03:21:18
Generator: Selecting best-scoring urls due for fetch.
Generator: filtering: true
Generator: normalizing: true
Generator: topN: 5
Generator: jobtracker is 'local', generating exactly one partition.
Generator: 0 records selected for fetching, exiting ...
Stopping at depth=0 - no more URLs to fetch.
No URLs to fetch - check your seed list and URL filters.
crawl finished: crawl_163_rank
为什么只能抓取到一个url呢?
[root@localhost apache-nutch-1.7]# ./bin/nutch readdb crawl_163_rank/crawldb/ -stats
CrawlDb statistics start: crawl_163_rank/crawldb/
Statistics for CrawlDb: crawl_163_rank/crawldb/
TOTAL urls: 1
retry 0: 1
min score: 1.0
avg score: 1.0
max score: 1.0
status 2 (db_fetched): 1
CrawlDb statistics: done
1.在urls/seed.text 文件中增加路径:http://news.163.com/rank/
2.使用命令抓取,命令为: ./bin/nutch crawl urls -dir crawl_163_rank -depth 3 -threads 3 -topN 5
抓取结果为:
[root@localhost apache-nutch-1.7]# ./bin/nutch crawl urls -dir crawl_163_rank -depth 3 -threads 3 -topN 5
solrUrl is not set, indexing will be skipped...
crawl started in: crawl_163_rank
rootUrlDir = urls
threads = 3
depth = 3
solrUrl=null
topN = 5
Injector: starting at 2014-01-01 03:21:13
Injector: crawlDb: crawl_163_rank/crawldb
Injector: urlDir: urls
Injector: Converting injected urls to crawl db entries.
Injector: total number of urls rejected by filters: 1
Injector: total number of urls injected after normalization and filtering: 0
Injector: Merging injected urls into crawl db.
Injector: finished at 2014-01-01 03:21:18, elapsed: 00:00:04
Generator: starting at 2014-01-01 03:21:18
Generator: Selecting best-scoring urls due for fetch.
Generator: filtering: true
Generator: normalizing: true
Generator: topN: 5
Generator: jobtracker is 'local', generating exactly one partition.
Generator: 0 records selected for fetching, exiting ...
Stopping at depth=0 - no more URLs to fetch.
No URLs to fetch - check your seed list and URL filters.
crawl finished: crawl_163_rank
为什么只能抓取到一个url呢?
[root@localhost apache-nutch-1.7]# ./bin/nutch readdb crawl_163_rank/crawldb/ -stats
CrawlDb statistics start: crawl_163_rank/crawldb/
Statistics for CrawlDb: crawl_163_rank/crawldb/
TOTAL urls: 1
retry 0: 1
min score: 1.0
avg score: 1.0
max score: 1.0
status 2 (db_fetched): 1
CrawlDb statistics: done
...全文


