def parse_link(link: bs4.element.Tag, domain: str) -> AttrDict: out = AttrDict() out.title = link.select('a:nth-of-type(1)')[0].text out.views = link.select('.views')[0].text.replace('Zugriffe', '').strip() out.answers = link.select('.posts')[0].text.replace('Antworten', '').strip() out.date = link.select('a:nth-of-type(3)')[0].text out.url = domain + link.select('a:nth-of-type(1)')[0].attrs['href'].replace('./', '/') return out