Use data.sherlockproject.xyz
I've created data.sherlockproject.xyz so that it will be eaiser for people use Sherlock's data in other projects if needed.
This commit is contained in:
@@ -8,7 +8,7 @@ import requests
|
||||
import secrets
|
||||
|
||||
|
||||
MANIFEST_URL = "https://raw.githubusercontent.com/sherlock-project/sherlock/master/sherlock_project/resources/data.json"
|
||||
MANIFEST_URL = "https://data.sherlockproject.xyz"
|
||||
EXCLUSIONS_URL = "https://raw.githubusercontent.com/sherlock-project/sherlock/refs/heads/exclusions/false_positive_exclusions.txt"
|
||||
|
||||
class SiteInformation:
|
||||
@@ -121,10 +121,6 @@ class SitesInformation:
|
||||
# users from creating issue about false positives which has already been fixed or having outdated data
|
||||
data_file_path = MANIFEST_URL
|
||||
|
||||
# Ensure that specified data file has correct extension.
|
||||
if not data_file_path.lower().endswith(".json"):
|
||||
raise FileNotFoundError(f"Incorrect JSON file extension for data file '{data_file_path}'.")
|
||||
|
||||
# if "http://" == data_file_path[:7].lower() or "https://" == data_file_path[:8].lower():
|
||||
if data_file_path.lower().startswith("http"):
|
||||
# Reference is to a URL.
|
||||
|
||||
Reference in New Issue
Block a user