Format
Python
Post date
2019-05-08 14:46
Zeitraum der Veröffentlichung
Unbegrenzt
  1. #!/usr/bin/env python
  2. from seleniumwire import webdriver # Import from seleniumwire
  3. import sys
  4. driver = webdriver.Chrome()
  5. driver.get(sys.argv[1])
  6. for request in driver.requests:
  7. if request.response and request.response.status_code >= 400:
  8. print("{0}\t{1:<30}\t{2}".format(
  9. request.response.status_code,
  10. request.response.headers.get('Content-Type', '(no content-type)'),
  11. request.path
  12. ))
  13. driver.close()
Download Printable view

URL of this paste

Embed with JavaScript

Embed with iframe

Raw text