Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def __init__(self):
- self.cookies = None
- self.url = None
- self._source_url = None
- self._url_reg = re.compile("^(?:(?:(https?:)?(//[^/?#]+)))?(/[^?#]+/|/)?([^?#]+)?([^#]*)(.*)$", re.IGNORECASE)
- self._url_groups = [""] * len(self._url_reg.match("").groups())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement