The html-page incudes the following script:
<script>
const url = 'REQUIRED LINK';
window.location.href = url + window.location.search;
</script>
This is the only place in page, where the link is.
I don't know Java at all.
I tried extract this way:
page_2 = requests.get(link).content.decode('UTF-8')
html_tree = html.fromstring(page_2)
inside_scripts = html_tree.xpath("//script[contains(@text, 'url')]")
But it returns empty list.