Skip to content

Commit

Permalink
Easy to restart
Browse files Browse the repository at this point in the history
  • Loading branch information
rortian committed Mar 11, 2012
1 parent 8296d24 commit 2ba3816
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions crawl.rb
Expand Up @@ -53,7 +53,14 @@ def self.find_or_create(name)

HTTPI.log = false

Thread.new do
def crawl(&block)
Thread.new do
block.call
end
block
end

yo = crawl do

while(to_visit.size > 0)

Expand All @@ -76,8 +83,8 @@ def self.find_or_create(name)


end

end


binding.pry

0 comments on commit 2ba3816

Please sign in to comment.