{ "info": { "author": "Dingyuan Wang", "author_email": "gumblex@aosc.io", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", "Topic :: Internet :: WWW/HTTP" ], "description": "htmllisting-parser\n==================\nPython parser for Apache/nginx-style HTML directory listing\n\n.. code-block:: python\n\n import htmllistparse\n cwd, listing = htmllistparse.fetch_listing(some_url, timeout=30)\n\n # or you can get the url and make a BeautifulSoup yourself, then use\n # cwd, listing = htmllistparse.parse(soup)\n\nwhere ``cwd`` is the current directory, ``listing`` is a list of ``FileEntry`` named tuples:\n\n* ``name``: File name, ``str``. Have a trailing / if it's a directory.\n* ``modified``: Last modification time, ``time.struct_time`` or ``None``. Timezone is not known.\n* ``size``: File size, ``int`` or ``None``. May be estimated from the prefix, such as \"K\", \"M\".\n* ``description``: File description, file type, or any other things found. ``str`` as HTML, or ``None``.\n\nSupports:\n\n* Vanilla Apache/nginx/lighttpd/darkhttpd autoindex\n* Most ``
``-style index\n* Many other ````-style index\n* ``