OpenQuizz
Une application de gestion des contenus pédagogiques
LinkCollector Class Reference

Public Member Functions

def __init__ (self, session, search_scope)
 
def create (cls, session, options, suppress_no_index=False)
 
def find_links (self)
 
def fetch_page (self, location)
 
CollectedSources collect_sources (self, str project_name, CandidatesFromPage candidates_from_page)
 

Data Fields

 search_scope
 
 session
 

Detailed Description

Responsible for collecting Link objects from all configured locations,
making network requests as needed.

The class's main method is its collect_sources() method.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  session,
  search_scope 
)

Member Function Documentation

◆ collect_sources()

CollectedSources collect_sources (   self,
str  project_name,
CandidatesFromPage  candidates_from_page 
)

◆ create()

def create (   cls,
  session,
  options,
  suppress_no_index = False 
)
:param session: The Session to use to make requests.
:param suppress_no_index: Whether to ignore the --no-index option
    when constructing the SearchScope object.

◆ fetch_page()

def fetch_page (   self,
  location 
)
Fetch an HTML page containing package links.

◆ find_links()

def find_links (   self)

Field Documentation

◆ search_scope

search_scope

◆ session

session

The documentation for this class was generated from the following file: