Example #1
0
def descargar_html(url):
    if url in cache: return cache[url]
    else:
        try:
            cache[url]=uget(url).read().decode('utf-8')
            return descargar_html(url)
        except Exception as e:
            print("ERROR AL DESCARGAR")            
            print(e)
            return ""
Example #2
0
def descargar_texto(url):
    if url in cache: return cache[url]
    else:
        from urllib.request import urlopen as uget
        cache[url]=uget(url).read().decode('utf-8')
        return descargar_texto(url)
Example #3
0
def descargar_html(url):
    if url in cache: return cache[url]
    else:
        cache[url]=uget(url).read().decode('utf-8')
        return descargar_html(url)