私はクロールをしていますが、私はウェブサイト全体をクロールする前に、to-to-pageのテストを打ちたいと思います。だから私は、以下のようなものは、仕事と考えていたが、私はnomethoderrorを得続ける....アネモネfocus_crawlを使ったRuby
Anemone.crawl(self.url) do |anemone|
anemone.focus_crawl do |crawled_page|
crawled_page.links.slice(0..10)
page = pages.find_or_create_by_url(crawled_page.url)
logger.debug(page.inspect)
page.check_for_term(self.term, crawled_page.body)
end
end
NoMethodError (private method `select' called for true:TrueClass):
app/models/site.rb:14:in `crawl'
app/controllers/sites_controller.rb:96:in `block in crawl'
app/controllers/sites_controller.rb:95:in `crawl'
は基本的に私は、最初のクローのみ10ページへの道を持つようにしたいが、私は基本を理解していないように見えますここに。誰かが私を助けることができますか? ありがとうございます!