def scan_site!
      add_pages_for_scan!
      while @pages_for_scan.size > 0
        page = convert_to_valid @pages_for_scan.pop
        next unless page
        @max_pages -= 1
        add_page convert_to_valid(page)
        return if @max_pages <= 0
        add_pages_for_scan!
        optimize_scan!
      end
    end
def scan_site!
      add_pages_for_scan!
      while @pages_for_scan.size > 0
        page = convert_to_valid @pages_for_scan.pop
        next unless page
        @max_pages -= 1
        add_page convert_to_valid(page)
        return if @max_pages <= 0
        add_pages_for_scan!
        optimize_scan!
      end
    end
scan pages: add page to scan, if still can scan do it, add new pages for scan from it and optimize massive of links