Obtendo um determinado valor de atributo usando XPath
Do seguinte snippet HTML:
<link rel="index" href="/index.php" />
<link rel="contents" href="/getdata.php" />
<link rel="copyright" href="/blabla.php" />
<link rel="shortcut icon" href="/img/all/favicon.ico" />
Estou tentando pegar ohref
valor dolink
tag com valor rel ="shortcut icon"
, Estou tentando conseguir isso usando o XPath.
Como fazer isso em Python?