OpenQuizz
Une application de gestion des contenus pédagogiques
pip._internal.index.collector Namespace Reference

Data Structures

class  _NotHTML
 
class  _NotHTTP
 
class  CacheablePageContent
 
class  CollectedSources
 
class  HTMLPage
 
class  LinkCollector
 

Functions

def with_cached_html_pages (fn)
 
def parse_links (page)
 

Variables

 logger
 
 HTMLElement
 
 ResponseHeaders
 

Detailed Description

The main purpose of this module is to expose LinkCollector.collect_sources().

Function Documentation

◆ parse_links()

def pip._internal.index.collector.parse_links (   page)
Parse an HTML document, and yield its anchor elements as Link objects.

◆ with_cached_html_pages()

def pip._internal.index.collector.with_cached_html_pages (   fn)
Given a function that parses an Iterable[Link] from an HTMLPage, cache the
function's result (keyed by CacheablePageContent), unless the HTMLPage
`page` has `page.cache_link_parsing == False`.

Variable Documentation

◆ HTMLElement

HTMLElement

◆ logger

logger

◆ ResponseHeaders

ResponseHeaders