I want to extract the text content which sits behind an a-tag element. The code looks like this:
<a data-autid="article-url" href="linkToTheWebsite">HERE STANDS THE TEXT I WANT TO EXTRACT</a>
In the past these a-tag elements didn't have an "data-" attribute, but a normal "id" attribute, which was super simple to extract. Now I have no idea how this should work. I tried this but it doesn't appear to do the job:
self.article_title = item.select_one('a', data_autid='article-url').text.strip()
Any idea what I could do?