Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Protego

Overview

Protego is a pure-Python robots.txt parser with support for modern conventions.

Requirements

  • Python 2.7 or Python 3.4+
  • Works on Linux, Windows, Mac OSX, BSD

Install

To install Protego, simply use pip:

pip install protego

Usage

>> from protego import Protego
>> import requests
>> r = requests.get('https://google.com/robots.txt')
>> rp = Protego.parse(r.text)
>> # That's it! We can now perform queries.
>> rp.can_fetch('https://google.com/search', 'mybot')
False
>> rp.can_fetch('https://google.com/search/about', 'mybot')
True
>> list(rp.sitemaps)
['https://www.google.com/sitemap.xml']

Metadata

Release files for Protego 0.1.dev0

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

Source distribution (sdist)

Source distribution for Protego 0.1.dev0
File Size Uploaded Provenance Actions
Protego-0.1.dev0.tar.gz 4.9 kB Without provenance Details for Protego-0.1.dev0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for Protego 0.1.dev0
File Interpreter ABI Platform Actions
Protego-0.1.dev0-py3.7.egg Legacy Egg format - - Details for Protego-0.1.dev0-py3.7.egg
Protego-0.1.dev0-py2.7.egg Legacy Egg format - - Details for Protego-0.1.dev0-py2.7.egg

Total release size: 23.5 kB

Release files / Protego-0.1.dev0.tar.gz

Download URL Protego-0.1.dev0.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
adda509c6926c1c18b06445cc1b6b71e95e43ef17afc4ebd0d02ad313f954947
BLAKE2b-256 checksum
How to use checksums
a05901c3a825711cfa01583144fe1f7f05bd59661b700a9638daa846466a59f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

Release files / Protego-0.1.dev0-py3.7.egg

Download URL Protego-0.1.dev0-py3.7.egg
Size 9.3 kB
Tags Egg
SHA-256 checksum
How to use checksums
a688ba1f8fae4a8968730f32b3ca3a274ca464a058267a7c4a987b20d2b6b86f
BLAKE2b-256 checksum
How to use checksums
17f7b70f56760c04b3c7f76d4f61e9879ef18e69728a4a1b86954240dde87155
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

Release files / Protego-0.1.dev0-py2.7.egg

Download URL Protego-0.1.dev0-py2.7.egg
Size 9.3 kB
Tags Egg
SHA-256 checksum
How to use checksums
860f5734f43f2bdb96b90457772fa9d198c9d7a31c3ddf24195d1798efbae2fb
BLAKE2b-256 checksum
How to use checksums
959592cdfab438613721c84e550fbfccd9e3a7393de307ca2ee3a62774f5aef0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

Security for Protego 0.1.dev0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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