Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions sherlock_project/sherlock.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,12 @@ def sherlock(

# Results from analysis of all sites
results_total = {}

# List containing all the iterable data except $schema key
iterable_data: list = list(site_data.items())[1:]

# First create futures for all requests. This allows for the requests to run in parallel
for social_network, net_info in site_data.items():
for social_network, net_info in iterable_data:
# Results from analysis of this specific site
results_site = {"url_main": net_info.get("urlMain")}

Expand Down Expand Up @@ -368,7 +371,7 @@ def sherlock(

# Open the file containing account links
# Core logic: If tor requests, make them here. If multi-threaded requests, wait for responses
for social_network, net_info in site_data.items():
for social_network, net_info in iterable_data:
# Retrieve results again
results_site = results_total.get(social_network)

Expand Down