mirror of
https://github.com/laramies/theHarvester.git
synced 2024-09-21 07:46:32 +08:00
Fix mypy error
This commit is contained in:
parent
a7313c3967
commit
0b2a14315a
|
@ -1,5 +1,5 @@
|
|||
from theHarvester.lib.core import *
|
||||
from typing import Set, List, Dict
|
||||
from typing import Set
|
||||
|
||||
|
||||
class SearchCrtsh:
|
||||
|
@ -14,7 +14,7 @@ async def do_search(self) -> Set:
|
|||
try:
|
||||
url = f'https://crt.sh/?q=%25.{self.word}&output=json'
|
||||
response = await AsyncFetcher.fetch_all([url], json=True, proxy=self.proxy)
|
||||
response: List[Dict] = response[0]
|
||||
response = response[0]
|
||||
data = set(
|
||||
[dct['name_value'][2:] if '*.' == dct['name_value'][:2] else dct['name_value']
|
||||
for dct in response])
|
||||
|
|
Loading…
Reference in a new issue