CLI arguments improvements, tests added

This commit is contained in:
Soxoj
2021-05-05 15:27:56 +03:00
parent 9858e71349
commit 3b91a9cd31
10 changed files with 287 additions and 205 deletions
+2 -2
View File
@@ -27,7 +27,7 @@ from .types import QueryOptions, QueryResultWrapper
from .utils import get_random_user_agent
supported_recursive_search_ids = (
SUPPORTED_IDS = (
"yandex_public_id",
"gaia_id",
"vk_id",
@@ -263,7 +263,7 @@ def process_site_result(
for k, v in extracted_ids_data.items():
if "username" in k:
new_usernames[v] = "username"
if k in supported_recursive_search_ids:
if k in SUPPORTED_IDS:
new_usernames[v] = k
results_info["ids_usernames"] = new_usernames