fulltext/services/legacy/legacy.py
def exists(self, identifier: str) -> bool:
        """
        Determine whether or not a target URL is available (HEAD request).

        Parameters
        ----------
        identifier : str
            arXiv identifier for which a PDF is required.

        Returns
        -------
        bool

        """
        r = self._session.head(self._path(f'/pdf/{identifier}'),
                               allow_redirects=True)
        if r.status_code == status.OK:
            return True
        if r.status_code == status.NOT_FOUND:
            return False
        raise IOError(f'Unexpected response status code: {r.status_code}')

        Determine whether or not a target URL is available (HEAD request).

        Parameters
        ----------
        identifier : str
            arXiv identifier for which a PDF is required.

        Returns
        -------
        bool

        
Determine whether or not a target URL is available (HEAD request).
Parameters

identifier : str
arXiv identifier for which a PDF is required.

Returns

bool
Determine whether or not a target URL is available ( HEAD request ) . Parameters identifier : str arXiv identifier for which a PDF is required . Returns bool
def exists(self, identifier: str) -> bool:
        r = self._session.head(self._path(f'/pdf/{identifier}'),
                               allow_redirects=True)
        if r.status_code == status.OK:
            return True
        if r.status_code == status.NOT_FOUND:
            return False
        raise IOError(f'Unexpected response status code: {r.status_code}')
def exists ( self , identifier : str ) -> bool : r = self . _session . head ( self . _path ( f'/pdf/{identifier}' ) , allow_redirects = True ) if r . status_code == status . OK : return True if r . status_code == status . NOT_FOUND : return False raise IOError ( f'Unexpected response status code: {r.status_code}' )
Determine whether or not a target URL is available (HEAD request).
Determine whether or not a target URL is available ( HEAD request ) .
"""
        Determine whether or not a target URL is available (HEAD request).

        Parameters
        ----------
        identifier : str
            arXiv identifier for which a PDF is required.

        Returns
        -------
        bool

        """
self
identifier
str