|
|
|
@ -3,11 +3,8 @@
|
|
|
|
|
This module supports storing information about web sites.
|
|
|
|
|
This is the raw data that will be used to search for usernames.
|
|
|
|
|
"""
|
|
|
|
|
import os
|
|
|
|
|
import json
|
|
|
|
|
import operator
|
|
|
|
|
import requests
|
|
|
|
|
import sys
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class SiteInformation():
|
|
|
|
@ -117,7 +114,8 @@ class SitesInformation():
|
|
|
|
|
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"):
|
|
|
|
|
#if "http://" == data_file_path[:7].lower() or "https://" == data_file_path[:8].lower():
|
|
|
|
|
# Reference is to a URL.
|
|
|
|
|
try:
|
|
|
|
|
response = requests.get(url=data_file_path)
|
|
|
|
|