Matchers

test(match=False)

Returns a Match object with the same True/False value.

isScheme(scheme)

Takes a space separated string of schemes and checks if the Uri candidate has a scheme matching one of them. Returns a True Match value if the URI has the submitted scheme.

isReferrer(referrer)

Space separated string with referrer urls

isSameHost(includeSubdomains=False)

Returns a True Match value if the Candidate URL has the same domain as its seed.

If includeSubdomains=True then the Candidate URL might have a subdomain of the Seeds domain.

maxHopsFromSeed(hops, includeRedirects=False)

isUrl(url)

Space separated string with urls

isUrl("http://example.com")