With the requests library, you can do this to get the site content as bytes:
requests.get("https://httpbin.org/get").content
There is a specific reason why I am using selenium instead of the requests library to basically do a GET request.
This 4 year old answer uses requests instead of selenium and this 3 year old forum post doesn't have any answers.
Is there a way to get the page source as bytes instead of a string?