fixuplinks
utilities for manipulating html links
The fixuplinks module is accessible via the wsgifilter module.
Attributes
Functions
f fixup_text_links(doc, link_repl_func, remove_base_tags=True) ...
fixup_links(), but work on text and returns text
f fixup_links(doc, link_repl_func, remove_base_tags=True) ...
Takes a given document (already parsed by lxml) and modifies it in-place. Every link is passed through link_repl_func, and the output of that function replaces the link.
f resolve_base_tags_in_document(doc) ...
removes all html <base href=""> tags from the document given.
f fixup_css_links(doc, link_repl_func) ...
prepends url(...) in css style elements to be absolute links based on base_uri
See the source for more information.