text: """
  Frontier from parameters example
  """
  from frontera.utils import graphs
  from frontera.core.manager import LocalFrontierManager
  from frontera import Request, Response
  
  if __name__ == '__main__':
      # Create graph
      graph = graphs.Manager('sqlite:///data/graph.db')
  
      # Create frontier
      frontier = LocalFrontierManager(
          request_model='frontera.core.models.Request',
          response_model='frontera.core.models.Response',
          backend='frontera.contrib.backends.memory.FIFO',
          middlewares=[
              'frontera.contrib.middlewares.domain.DomainMiddleware',
              'frontera.contrib.middlewares.fingerprint.UrlFingerprintMiddleware',
              'frontera.contrib.middlewares.fingerprint.DomainFingerprintMiddleware',
          ],
          test_mode=True)
  
      # Add seeds
      frontier.add_seeds([Request(seed.url) for seed in graph.seeds])
  
      # Get next requests
      next_requests = frontier.get_next_requests()
  
      # Crawl pages
      for request in next_requests:
  
          # Fake page crawling
          crawled_page = graph.get_page(request.url)
  
          # Create response
          response = Response(url=request.url,
                              status_code=crawled_page.status,
                              request=request)
          # Create page links
          page_links = [Request(link.url) for link in crawled_page.links]
  
          # Update Page
          frontier.page_crawled(response=response, links=page_links)
  