1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: 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