I want to change links from a html page like below:
//html
<html>
<head>
<title>Hello</title>
</head>
<body>
<p>this is a simple text in html file</p>
<a href="https://google.com">Google</a>
<a href="/frontend/login/">Login</a>
<a href="/something/work/">Something</a>
</body>
</html>
//Result
<html>
<head>
<title>Hello</title>
</head>
<body>
<p>this is a simple text in html file</p>
<a href="https://google.com">Google</a>
<a href="/more/frontend/login/part/">Login</a>
<a href="/more/something/work/extra/">Something</a>
</body>
</html>
So how can I change html to result and save it as html using python ?