def _browser_init(self):
if self.session:<EOL><INDENT>return<EOL><DEDENT>self.session = requests.Session()<EOL>headers = {}<EOL>if self.user_agent:<EOL><INDENT>headers['<STR_LIT>'] = self.user_agent<EOL><DEDENT>self.session.headers.update(headers)<EOL>if self._auth_method in [None, "<STR_LIT>", "<STR_LIT>"]:<EOL><INDENT>if self._auth_username is not None:<EOL><INDENT>self.session.auth = (self._auth_username, self._auth_password)<EOL><DEDENT><DEDENT>
Init the browsing instance if not setup

:rtype: None