I'm trying to display the elements of a dictionary but I'm having difficulties, when I try to display it shows the whole object, this is my code:
produtos = []
@tasks.loop(seconds=5)
async def aviso():
request = requests.get("https://www.nike.com.br/snkrs#estoque")
soup = bs4(request.text, "html.parser")
links = soup.find_all("a", text="Comprar", class_="btn")
for link in links:
produtos.append(link["href"])
print(produtos)
The problem here is that it displays everything in this format:
['https://www.nike.com.br/air-max-90-153-169-211-330199', ...]
How can I get only the link on this dictionary?
Edit:
I want to display it this way:
'https://www.nike.com.br/air-max-90-153-169-211-330199', ...
I'm creating a bot for discord, I posted only the useful part of the code.