[Python] Find an HTML element using BeautifulSoup by partial text

Discussão em 'Python' iniciado por Stack, Abril 15, 2025.

  1. Stack

    Stack Membro Participativo

    I have to find all paragraph that contains a specific partial text.

    I find to find it that way Whole text in paragraph is

    "Open Until: Tuesday November 20, 2018, // 4:00 pm MST"


    There is always a new date each time, so i have to give partial text like

    element = soup.findAll("p",text="Open Until")

    Continue reading...

Compartilhe esta Página