Skip to main content

Brings automatic support for robots.txt files in requests.

Project description

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.

Project details


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

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page