webcache/archiveis.py
def cache(url):
        """
        Get a cache url and download the last one
        """
        snapshots = ArchiveIs.snapshots(url)
        if len(snapshots) > 0:
            last = sorted(snapshots, key=lambda x: x['date'], reverse=True)[0]
            return ArchiveIs.download_cache(last['archive'])
        else:
            return {
                'success': False
            }

        Get a cache url and download the last one
        
Get a cache url and download the last one
Get a cache url and download the last one
def cache(url):
        snapshots = ArchiveIs.snapshots(url)
        if len(snapshots) > 0:
            last = sorted(snapshots, key=lambda x: x['date'], reverse=True)[0]
            return ArchiveIs.download_cache(last['archive'])
        else:
            return {
                'success': False
            }
def cache ( url ) : snapshots = ArchiveIs . snapshots ( url ) if len ( snapshots ) > 0 : last = sorted ( snapshots , key = lambda x : x [ 'date' ] , reverse = True ) [ 0 ] return ArchiveIs . download_cache ( last [ 'archive' ] ) else : return { 'success' : False }
Get a cache url and download the last one
Get a cache url and download the last one
"""
        Get a cache url and download the last one
        """
url