1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[Python] How do I extract tags with ::marker from HTML using beautiful soup

Discussão em 'Python' iniciado por Stack, Setembro 11, 2024.

  1. Stack

    Stack Membro Participativo

    I am trying to find li elements that have ::marker such as seen below using BeautifulSoup.

    I tried using cssutils but was unsuccessful (maybe I am using it wrong)

    [​IMG]

    Pseudo code:

    lis = soup_obj.find_all("li")
    for li in lis:
    if li (has :: marker): # This is what I would like to do
    print(li)


    Thank you in advance for your help.

    Continue reading...

Compartilhe esta Página