Skip to main content

Module weblink

Module weblink 

Source
Expand description

Reading the address out of link files: Windows .url shortcuts (an INI file), the link format in Eagle’s list. A macOS .webloc is a plain item, as in Eagle.

Functions§

is_link_file
Whether an extension names a link file (url, any case).
parse
Parses link file contents, picking the format from the extension.
parse_internet_shortcut
The address of a Windows .url file: the first URL= key in the [InternetShortcut] section. Section names and keys ignore case, and keys in other sections are skipped.
read
Reads the address from a link file by its extension. Files over 1 MiB, unreadable files and files without an address give None.