(self, url: str | bytes, user_agent: str | bytes)
| 118 | return cls(robotstxt_body, spider) |
| 119 | |
| 120 | def allowed(self, url: str | bytes, user_agent: str | bytes) -> bool: |
| 121 | user_agent = to_unicode(user_agent) |
| 122 | url = to_unicode(url) |
| 123 | return self.rp.can_fetch(url, user_agent) |
nothing calls this directly
no test coverage detected