I'm trying to scrape the information from Google Translate as a learning exercise and I can't figure out how to reach the content of this span tag.
<span title="Hello" onmouseover="this.style.backgroundColor='#ebeff9'"
onmouseout="this.style.backgroundColor='#fff'">
Hallo
</span>
How would I use Python to reach into the contents. Since the 'title' parameter of this span is dynamic, I guess I can target that as a point of entry?
For example trying to translate: Hi, welcome to my house. Would you like a glass of tea or maybe some biscuits?
results in the following html output:
<span title="Hi, welcome to my house."
onmouseover="this.style.backgroundColor='#ebeff9'"
onmouseout="this.style.backgroundColor='#fff'">
Hallo, mein Haus begrüßen zu dürfen.
</span>