def handShake(url, password): handShakeRounds = 4 Blocks.initStatus(url) for i in xrange(handShakeRounds): url = Blocks.handShakeNext() if Blocks.handShakeNext() else url r = Requestor(url) r.browserLikeBehavior() while r.isNotAvailable(None): print "Not yet!" time.sleep(100) continue newBlock = r.linkStructure(url) Blocks.addBlock(newBlock) Blocks.handShakeStep(password)