简体   繁体   中英

How to allow apache nutch to crawl forever

I am using apache nutch (2.2.1) for crawling. What changes are need if I want to crawl forever. Guide me completely as I am not familiar with nutch too mutch.

If you want to crawl forever, the following is the script you need:

#!/bin/bash

./bin/nutch inject urls #urls is the seed data
while [ 1 == 1 ]
do
   ./bin/nutch generate -topN 10000 # 10000 is the number of URLs will be fetch in each crawling round, you can modify it
   ./bin/nutch fetch -all
   ./bin/nutch parse -all
   ./bin/nutch updatedb

done

Hope this helps

Le Quoc Do

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM