In Google Chrome, when you are on a website, you can right-click -> save as ... -> Web Page, complete.
I would like to do the same, but automatically with a python3 script.
I have this code so far using the requests
package in python, but it only saves the file like when I do right-click -> save as ... -> Web Page, HTML only.:
# https://www.w3schools.com/python/ref_requests_get.asp
import requests
x = requests.get('https://w3schools.com')
print(x.status_code)
TLDR: Tried saving complete webpage as html, but only getting raw html