%global _empty_manifest_terminate_build 0 Name: python-htmllistparse Version: 0.6.0 Release: 1 Summary: Python parser for Apache/nginx-style HTML directory listing. License: MIT URL: https://github.com/gumblex/htmllisting-parser Source0: https://mirrors.nju.edu.cn/pypi/web/packages/89/8a/5a19ad816836eb5163401a21d2ae3cc1435df01f7d181dba3a4804c992f0/htmllistparse-0.6.0.tar.gz BuildArch: noarch %description Python parser for Apache/nginx-style HTML directory listing import htmllistparse cwd, listing = htmllistparse.fetch_listing(some_url, timeout=30) # or you can get the url and make a BeautifulSoup yourself, then use # cwd, listing = htmllistparse.parse(soup) where ``cwd`` is the current directory, ``listing`` is a list of ``FileEntry`` named tuples: * ``name``: File name, ``str``. Have a trailing / if it's a directory. * ``modified``: Last modification time, ``time.struct_time`` or ``None``. Timezone is not known. * ``size``: File size, ``int`` or ``None``. May be estimated from the prefix, such as "K", "M". * ``description``: File description, file type, or any other things found. ``str`` as HTML, or ``None``. Supports: * Vanilla Apache/nginx/lighttpd/darkhttpd autoindex * Most ``
``-style index
* Many other ````-style index
* ``
``-style index * ``
``-style index * ``