You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fromnutch.nutchimportNutchfromnutch.nutchimportSeedClientfromnutch.nutchimportServerfromnutch.nutchimportJobClientimportnutchsv=Server('http://localhost:8081')
sc=SeedClient(sv)
seed_urls=('http://espn.go.com','http://www.espn.com')
sd=sc.create('espn-seed',seed_urls)
nt=Nutch('default')
jc=JobClient(sv, 'test', 'default')
cc=nt.Crawl(sd, sc, jc)
whileTrue:
job=cc.progress() # gets the current job if no progress, else iterates and makes progressifjob==None:
break