A simple library to parse and read robots.txt files
Project description
Latae
A pure Python library for parsing and reading robots.txt files
🛠 Note
Latae is currently in heavy development, expect bugs! More features are planned.
💻 Usage
Via a file on your local system...
import latae as lt
with open("robots.txt", "r") as f:
rb_file = f.readlines()
# Get disallowed paths in the form of a Dict
lt.get_disallowed(rb_file)
# Get the XML sitemap
lt.get_sitemap(rb_file)
...Or via the requests module
import requests
import latae as lt
rb_file = requests.get("https://duckduckgo.com/robots.txt").text
# Get disallowed paths in the form of a Dict
lt.get_disallowed(rb_file.splitlines())
# Get the XML sitemap
lt.get_sitemap(rb_file.splitlines())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
latae-0.0.4.tar.gz
(2.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
latae-0.0.4-py3-none-any.whl
(2.3 kB
view details)
File details
Details for the file latae-0.0.4.tar.gz.
File metadata
- Download URL: latae-0.0.4.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e3db36234eda240225e2948c2ea1424beecf2c37108bff022f34b83791acad4a
|
|
| MD5 |
7fc5d6a8550e7c7a44332f60944ffc07
|
|
| BLAKE2b-256 |
5a64b9d0177573ad2d3f963722be6529f28329d8ee87f61f5e8af39c454c1d3b
|
File details
Details for the file latae-0.0.4-py3-none-any.whl.
File metadata
- Download URL: latae-0.0.4-py3-none-any.whl
- Upload date:
- Size: 2.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
216bc0ab5d43a90688bb1be5f6ba0877dd7bc4f2bbbfea6628e54eb0ef29ca24
|
|
| MD5 |
6075b704933ceb6daf71631e9b471ca1
|
|
| BLAKE2b-256 |
a2ad0b5b8c0cf2fce3fa31e3ec0bb10c64c141b4c63cb2f1c8e7ca1191416f2b
|