def bf_parse(base_url, headers):
session = requests.session()
request = session.get(base_url, headers=headers)
if request.status_code == 200:
soup = bs(request.content, 'html.parser')
links = (d.find('a') for d in soup.find_all('div', attrs=('forum-user-name')))
users = {'https://www.banki.ru' + a.get('href') for a in links if a is not None}
print('\n'.join(users))
else:
print("ерор")