(url)
Download an url from a cache
Download an url from a cache
Download an url from a cache
def cache(url):
        """
        Download an url from a cache
        """
        snapshots = ArchiveOrg.snapshots(url)
        if len(snapshots):
            last = sorted(snapshots, key=lambda x: x['date'], reverse=True)[0]
            return ArchiveOrg.download_cache(last['archive'])
        else:
            return {'success': False}
def cache ( url ) : snapshots = ArchiveOrg . snapshots ( url ) if len ( snapshots ) : last = sorted ( snapshots , key = lambda x : x [ 'date' ] , reverse = True ) [ 0 ] return ArchiveOrg . download_cache ( last [ 'archive' ] ) else : return { 'success' : False }