<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_url(self, url):
 """Sets the URL referring to a robots.txt file."""

        self.url = url
        self.host, self.path = urllib.parse.urlparse(url)[1:3]