From https://www.deepl.com/translator#en/fr/Hello%2C%20how%20are%20you%20today%3F
We see this:
But in code, the translated text "Bonjour, comment allez-vous aujourd'hui?" doesn't appear in any place of the page's source and the frame's code looks like:
<textarea class="lmt__textarea lmt__target_textarea lmt__textarea_base_style"
data-gramm_editor="false" tabindex="110" dl-test="translator-target-input"
lang="fr-FR" style="height: 300px;"></textarea>
And no matter how I read the text or source through BeautifulSoup, the translation in that textarea
frame just can't be extracted.
import requests
from bs4 import BeautifulSoup
response = requests.get('https://www.deepl.com/translator#en/fr/Hello%2C%20how%20are%20you%20today%3F')
bsoup = BeautifulSoup(response.content.decode('utf8'))
bsoup.find_all('textarea')
How to extract the translations from any part of the page from the https://www.deepl.com/translator?