MCPcopy
hub / github.com/scrapy/scrapy / allowed

Method allowed

scrapy/robotstxt.py:103–106  ·  view source on GitHub ↗
(self, url: str | bytes, user_agent: str | bytes)

Source from the content-addressed store, hash-verified

101 return cls(robotstxt_body, spider)
102
103 def allowed(self, url: str | bytes, user_agent: str | bytes) -> bool:
104 user_agent = to_unicode(user_agent)
105 url = to_unicode(url)
106 return cast("bool", self.rp.is_allowed(user_agent, url))
107
108
109class ProtegoRobotParser(RobotParser):

Callers

nothing calls this directly

Calls 1

to_unicodeFunction · 0.90

Tested by

no test coverage detected