httpz

- Hyper-fast HTTP Scraping Tool
git clone git://git.acid.vegas/httpz.git
Log | Files | Refs | Archive | README | LICENSE

commit cd66542003d2c079687ec4931b91d0ba2f81c19e
parent 44e27630de9cce027fe529756ca7a18c84617c54
Author: acidvegas <acid.vegas@acid.vegas>
Date: Tue, 11 Feb 2025 21:31:00 -0500

fuck

Diffstat:
Mhttpz_scanner/__init__.py | 4++--
Mhttpz_scanner/cli.py | 12+++++++-----
Msetup.py | 2+-

3 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/httpz_scanner/__init__.py b/httpz_scanner/__init__.py
@@ -6,4 +6,4 @@ from .scanner import HTTPZScanner
 from .colors  import Colors
 
 
-__version__ = '2.0.6'
-\ No newline at end of file
+__version__ = '2.0.7'
+\ No newline at end of file
diff --git a/httpz_scanner/cli.py b/httpz_scanner/cli.py
@@ -155,17 +155,19 @@ async def main():
                 with open(args.output, 'a') as f:
                     f.write(json.dumps(result) + '\n')
             
-            # Only output and increment counter if we have content to show
+            # Handle JSON output separately
+            if args.jsonl:
+                print(json.dumps(result))
+                continue
+
+            # Only output and increment counter if we have content to show for normal output
             formatted = format_console_output(result, args.debug, show_fields, args.match_codes, args.exclude_codes)
             if formatted:
                 if args.progress:
                     count += 1
                     info(f"[{count}] {formatted}")
                 else:
-                    if args.jsonl:
-                        print(json.dumps(result))
-                    else:
-                        print(formatted)
+                    print(formatted)
 
     except KeyboardInterrupt:
         logging.warning('Process interrupted by user')
diff --git a/setup.py b/setup.py
@@ -10,7 +10,7 @@ with open('README.md', 'r', encoding='utf-8') as f:
 
 setup(
     name='httpz_scanner',
-    version='2.0.6',
+    version='2.0.7',
     author='acidvegas',
     author_email='acid.vegas@acid.vegas',
     description='Hyper-fast HTTP Scraping Tool',