Is it possible to receive the status code of a URL with headless Chrome (python)?
Asked
Active
Viewed 440 times
1 Answers
0
As stated in this answer it's not possible using python and selenium (I guess you are using selenium?). A working alternative from selenium and chrome is requests. With requests an example would look like this:
import requests
response = requests.get('https://api.github.com')
print(response.status_code)

Abrogans
- 179
- 1
- 13