Может быть, class=''
будет делать с find_all
или findAll
:
from bs4 import BeautifulSoup
html = """
<div class="news">
<p class="breaking"> </p>
...
<p> i need to pull here. </p>
"""
soup = BeautifulSoup(html, 'html.parser')
print(soup.find_all('p', class_=''))
print(soup.findAll(True, {'class': ''}))
Выход
[<p> i need to pull here. </p>]
[<p> i need to pull here. </p>]