Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 98788

Get page source as bytes in python selenium [duplicate]

$
0
0

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?


Viewing all articles
Browse latest Browse all 98788

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>