Skip to main content
https://secure.travis-ci.org/ambv/requests-robotstxt.png

Currently just a proof of concept, the module strives to be an extension to requests that brings automatic support for robots.txt.

How to use

Simply use RobotsAwareSession instead of the built-in requests.Session. If a resource is not allowed, a RobotsTxtDisallowed exception is raised.

How do I run the tests?

The easiest way would be to extract the source tarball and run:

$ python test/test_robotstxt.py

Change Log

0.1.0

  • initial published version

Authors

Glued together by Łukasz Langa.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

requests-robotstxt-0.1.0.tar.gz (3.9 kB view details)

Uploaded Source

File details

Details for the file requests-robotstxt-0.1.0.tar.gz.

File metadata

File hashes

Hashes for requests-robotstxt-0.1.0.tar.gz
Algorithm Hash digest
SHA256 502292aac0e7c2ef7de34921d4e59ff38a82b4412255f551f8f99d1718213563
MD5 620945ddd2fa5d81a09d0d6ac81bd5d8
BLAKE2b-256 d2962c5d5d1420370b8f6193f562573623095245cc09e4820385b4e7d43540a5

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 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