Skip to main content

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())

Release files for latae 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for latae 0.0.4
File Size Uploaded
latae-0.0.4.tar.gz 2.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for latae 0.0.4
File Interpreter ABI Platform
latae-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 4.7 kB

Release files / latae-0.0.4.tar.gz

Download URL latae-0.0.4.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e3db36234eda240225e2948c2ea1424beecf2c37108bff022f34b83791acad4a
BLAKE2b-256 checksum
How to use checksums
5a64b9d0177573ad2d3f963722be6529f28329d8ee87f61f5e8af39c454c1d3b
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / latae-0.0.4-py3-none-any.whl

Download URL latae-0.0.4-py3-none-any.whl
Size 2.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
216bc0ab5d43a90688bb1be5f6ba0877dd7bc4f2bbbfea6628e54eb0ef29ca24
BLAKE2b-256 checksum
How to use checksums
a2ad0b5b8c0cf2fce3fa31e3ec0bb10c64c141b4c63cb2f1c8e7ca1191416f2b
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page