Это должно сделать это, я думаю:
from bs4 import BeautifulSoup as bs
url = 'https://lawyers.justia.com/lawyer/ali-shahrestani-esq-198352'
data = requests.get(url)
soup = bs(data.text,'lxml')
target = soup.find_all("div",{"class":"heading-3 block-title iconed-heading font-w-bold"})
for t in target:
if t.find('span', class_="jicon -large jicon-languages"):
langs = t.find_next_sibling()
for lang in langs.find_all('li'):
print(lang.text)
Вывод:
English: Spoken, Written
French: Spoken, Written
Italian: Spoken, Written
Persian: Spoken
Spanish: Spoken, Written