httpz

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

commit 6dacafeee522880d92fb7dee62b40f8a87cde3f9
parent 41d7e53d30a07776137eb3a5846d210e8599170d
Author: acidvegas <acid.vegas@acid.vegas>
Date: Wed, 12 Feb 2025 00:35:35 -0500

fixed chunk output

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

3 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/httpz_scanner/__init__.py b/httpz_scanner/__init__.py
@@ -6,4 +6,4 @@ from .colors  import Colors
 from .scanner import HTTPZScanner
 
 
-__version__ = '2.1.2'
-\ No newline at end of file
+__version__ = '2.1.3'
+\ No newline at end of file
diff --git a/httpz_scanner/cli.py b/httpz_scanner/cli.py
@@ -152,10 +152,11 @@ async def main():
             if args.output:
                 with open(args.output, 'a') as f:
                     f.write(json.dumps(result) + '\n')
+                    f.flush()  # Ensure file output is immediate
             
             # Handle JSON output separately
             if args.jsonl:
-                print(json.dumps(result))
+                print(json.dumps(result), flush=True)  # Force flush
                 continue
 
             # Only output and increment counter if we have content to show for normal output
@@ -164,8 +165,9 @@ async def main():
                 if args.progress:
                     count += 1
                     info(f"[{count}] {formatted}")
+                    sys.stdout.flush()  # Force flush after each domain
                 else:
-                    print(formatted)
+                    print(formatted, flush=True)  # Force flush
 
     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.1.2',
+    version='2.1.3',
     author='acidvegas',
     author_email='acid.vegas@acid.vegas',
     description='Hyper-fast HTTP Scraping Tool',