May-23-2021, 04:57 AM
(This post was last modified: May-23-2021, 04:57 AM by andre_kadomoto.)
Hello, guys!
Need a little help here...
I've tried many ways, but I couldn't hack it..
I need to extract a list of the titles in the html below
The issue here is that I don't know how to reconize those titles as a list <a>
This way I could only get to the first title:
Thaaanks!!
Need a little help here...
I've tried many ways, but I couldn't hack it..
I need to extract a list of the titles in the html below
The issue here is that I don't know how to reconize those titles as a list <a>
This way I could only get to the first title:
tag = soup.a['title']And this way reached all the strings, but couldn't extract the titles in each line:
tabela.find_all('a')My list must look like this:
BV DOLAR CAMBIAL FIC DE FI DOLAR FI CAMBIAL OCCAM FUNDO DE INVESTIMENTO CAMBIAL BV USD SHORT CAMBIAL FIC RIO BRAVO CREDITO PRIVADO FIRFHTML String:
Quote:[<a class="bt-detail" href="/fundos-de-investimento/bv-dolar-cambial-fic-de-fi" title="BV DOLAR CAMBIAL FIC DE FI">Detalhes</a>,
<a class="bt-detail" href="/fundos-de-investimento/dolar-fi-cambial" title="DOLAR FI CAMBIAL">Detalhes</a>,
<a class="bt-detail" href="/fundos-de-investimento/occam-fundo-de-investimento-cambial" title="OCCAM FUNDO DE INVESTIMENTO CAMBIAL">Detalhes</a>,
<a class="bt-detail" href="/fundos-de-investimento/bv-usd-short-cambial-fic" title="BV USD SHORT CAMBIAL FIC">Detalhes</a>,
<a class="bt-detail" href="/fundos-de-investimento/rio-bravo-credito-privado-firf" title="RIO BRAVO CREDITO PRIVADO FIRF">Detalhes</a>]
Thaaanks!!