Menu principal

News
C.V.
Contact
Archives

Designed by:
SiteGround web hosting Joomla Templates
Fonction de recherche de lien HTML dans un contenu Convertir en PDF Version imprimable Suggérer par mail
Écrit par DOTNET   
12-07-2009
#recupere tous les liens d'un document html

def getAllLinks( sContent ):
    oFormatter = formatter.AbstractFormatter( formatter.DumbWriter( StringIO() ) )
    parser = htmllib.HTMLParser( oFormatter )
    parser.feed( sContent )
    parser.close()
    return parser.anchorlist
 
Suivant >