|
OpenQuizz
Une application de gestion des contenus pédagogiques
|
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 | |
Responsible for collecting Link objects from all configured locations, making network requests as needed. The class's main method is its collect_sources() method.
| def __init__ | ( | self, | |
| session, | |||
| search_scope | |||
| ) |
| CollectedSources collect_sources | ( | self, | |
| str | project_name, | ||
| CandidatesFromPage | candidates_from_page | ||
| ) |
| 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.
| def fetch_page | ( | self, | |
| location | |||
| ) |
Fetch an HTML page containing package links.
| def find_links | ( | self | ) |
| search_scope |
| session |