add '--print-traffic'

pull/5870/head
Mike Fährmann 3 months ago
parent b376fa814e
commit b3aded1939
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -145,6 +145,10 @@ def main():
log.debug("Configuration Files %s", config._files) log.debug("Configuration Files %s", config._files)
if args.print_traffic:
import requests
requests.packages.urllib3.connection.HTTPConnection.debuglevel = 1
# extractor modules # extractor modules
modules = config.get(("extractor",), "modules") modules = config.get(("extractor",), "modules")
if modules is not None: if modules is not None:

@ -345,6 +345,11 @@ def build_parser():
help=("Write downloaded intermediary pages to files " help=("Write downloaded intermediary pages to files "
"in the current directory to debug problems"), "in the current directory to debug problems"),
) )
output.add_argument(
"--print-traffic",
dest="print_traffic", action="store_true",
help=("Display sent and read HTTP traffic"),
)
output.add_argument( output.add_argument(
"--no-colors", "--no-colors",
dest="colors", action="store_false", dest="colors", action="store_false",

Loading…
Cancel
Save