fuck
This commit is contained in:
parent
63517430b7
commit
3d8b2d8e4f
@ -6,4 +6,4 @@ from .scanner import HTTPZScanner
|
|||||||
from .colors import Colors
|
from .colors import Colors
|
||||||
|
|
||||||
|
|
||||||
__version__ = '2.0.9'
|
__version__ = '2.0.11'
|
@ -212,10 +212,10 @@ class HTTPZScanner:
|
|||||||
tasks, return_when=asyncio.FIRST_COMPLETED
|
tasks, return_when=asyncio.FIRST_COMPLETED
|
||||||
)
|
)
|
||||||
for task in done:
|
for task in done:
|
||||||
result = await task
|
if result := await task: # Only yield if result is not None
|
||||||
if self.show_progress:
|
if self.show_progress:
|
||||||
count += 1 # Increment counter here
|
count += 1
|
||||||
yield result
|
yield result
|
||||||
|
|
||||||
task = asyncio.create_task(self.check_domain(session, domain))
|
task = asyncio.create_task(self.check_domain(session, domain))
|
||||||
tasks.add(task)
|
tasks.add(task)
|
||||||
@ -229,10 +229,10 @@ class HTTPZScanner:
|
|||||||
tasks, return_when=asyncio.FIRST_COMPLETED
|
tasks, return_when=asyncio.FIRST_COMPLETED
|
||||||
)
|
)
|
||||||
for task in done:
|
for task in done:
|
||||||
result = await task
|
if result := await task: # Only yield if result is not None
|
||||||
if self.show_progress:
|
if self.show_progress:
|
||||||
count += 1
|
count += 1
|
||||||
yield result
|
yield result
|
||||||
|
|
||||||
task = asyncio.create_task(self.check_domain(session, domain))
|
task = asyncio.create_task(self.check_domain(session, domain))
|
||||||
tasks.add(task)
|
tasks.add(task)
|
||||||
@ -251,10 +251,10 @@ class HTTPZScanner:
|
|||||||
tasks, return_when=asyncio.FIRST_COMPLETED
|
tasks, return_when=asyncio.FIRST_COMPLETED
|
||||||
)
|
)
|
||||||
for task in done:
|
for task in done:
|
||||||
result = await task
|
if result := await task: # Only yield if result is not None
|
||||||
if self.show_progress:
|
if self.show_progress:
|
||||||
count += 1
|
count += 1
|
||||||
yield result
|
yield result
|
||||||
|
|
||||||
task = asyncio.create_task(self.check_domain(session, domain))
|
task = asyncio.create_task(self.check_domain(session, domain))
|
||||||
tasks.add(task)
|
tasks.add(task)
|
||||||
@ -264,7 +264,7 @@ class HTTPZScanner:
|
|||||||
if tasks:
|
if tasks:
|
||||||
done, _ = await asyncio.wait(tasks)
|
done, _ = await asyncio.wait(tasks)
|
||||||
for task in done:
|
for task in done:
|
||||||
result = await task
|
if result := await task: # Only yield if result is not None
|
||||||
if self.show_progress:
|
if self.show_progress:
|
||||||
count += 1
|
count += 1
|
||||||
yield result
|
yield result
|
2
setup.py
2
setup.py
@ -10,7 +10,7 @@ with open('README.md', 'r', encoding='utf-8') as f:
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='httpz_scanner',
|
name='httpz_scanner',
|
||||||
version='2.0.9',
|
version='2.0.11',
|
||||||
author='acidvegas',
|
author='acidvegas',
|
||||||
author_email='acid.vegas@acid.vegas',
|
author_email='acid.vegas@acid.vegas',
|
||||||
description='Hyper-fast HTTP Scraping Tool',
|
description='Hyper-fast HTTP Scraping Tool',
|
||||||
|
Loading…
Reference in New Issue
Block a user