requests_middleware.contrib.robotware.RobotsDisallowedError

Here are the examples of the python api requests_middleware.contrib.robotware.RobotsDisallowedError taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

Example 1

Project: requests-middleware Source File: test_robots.py
@pytest.mark.httpretty
def test_disallow_disallowed_agent(session, robots_fixture, blocked_fixture):
    with pytest.raises(robotware.RobotsDisallowedError):
        session.get('http://test.com/blocked')