import requests
from bs4 import BeautifulSoup as BS
c = '''parser for
'''
print (c)
r = requests.get(')
html= BS(r.content, 'html.parser')
for el in html.select('.msg'):
title = el.select('.superuser > a')
print( title[0].text )
.superuser
вложен в <a>
, а не наоборот.for el in html.select('.msg'):
title = el.select('a > .superuser')
if title:
print( title[0].text )