pylinky/client.py
def login(self):
        """Set http session."""
        if self._session is None:
            self._session = requests.session()
            # adding fake user-agent header
            self._session.headers.update({'User-agent': str(UserAgent().random)})
        return self._post_login_page()
def login(self):
        """Set http session."""
        if self._session is None:
            self._session = requests.session()
            # adding fake user-agent header
            self._session.headers.update({'User-agent': str(UserAgent().random)})
        return self._post_login_page()
def login ( self ) : if self . _session is None : self . _session = requests . session ( ) # adding fake user-agent header self . _session . headers . update ( { 'User-agent' : str ( UserAgent ( ) . random ) } ) return self . _post_login_page ( )
Set http session.
Set http session .