Move content into sherlock sub-directory inside of repo. This directory will look very much like what the packaged version of Sherlock will look like when it is installed in the site-packages area.
No real restructuring of the code has happened. This just gives a view of the directory structure.
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
"""Sherlock Module
|
||||
|
||||
This module contains the main logic to search for usernames at social
|
||||
networks.
|
||||
"""
|
||||
@@ -0,0 +1,14 @@
|
||||
#! /usr/bin/env python3
|
||||
|
||||
"""
|
||||
Sherlock: Find Usernames Across Social Networks Module
|
||||
|
||||
This module contains the main logic to search for usernames at social
|
||||
networks.
|
||||
"""
|
||||
|
||||
import sherlock
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sherlock.main()
|
||||
Executable → Regular
+1
-1
@@ -405,7 +405,7 @@ def main():
|
||||
help="Make requests over a proxy. e.g. socks5://127.0.0.1:1080"
|
||||
)
|
||||
parser.add_argument("--json", "-j", metavar="JSON_FILE",
|
||||
dest="json_file", default="data.json",
|
||||
dest="json_file", default="resources/data.json",
|
||||
help="Load data from a JSON file or an online, valid, JSON file.")
|
||||
parser.add_argument("--proxy_list", "-pl", metavar='PROXY_LIST',
|
||||
action="store", dest="proxy_list", default=None,
|
||||
@@ -28,7 +28,7 @@ class SherlockBaseTest(unittest.TestCase):
|
||||
warnings.simplefilter("ignore", ResourceWarning)
|
||||
|
||||
# Load the data file with all site information.
|
||||
data_file_path = os.path.join(os.path.dirname(os.path.realpath(sherlock.__file__)), "data.json")
|
||||
data_file_path = os.path.join(os.path.dirname(os.path.realpath(sherlock.__file__)), "resources/data.json")
|
||||
with open(data_file_path, "r", encoding="utf-8") as raw:
|
||||
self.site_data_all = json.load(raw)
|
||||
|
||||
+1
-1
@@ -36,7 +36,7 @@ parser.add_argument("--rank","-r",
|
||||
)
|
||||
args = parser.parse_args()
|
||||
|
||||
with open("data.json", "r", encoding="utf-8") as data_file:
|
||||
with open("sherlock/resources/data.json", "r", encoding="utf-8") as data_file:
|
||||
data = json.load(data_file)
|
||||
|
||||
with open("sites.md", "w") as site_file:
|
||||
|
||||
Reference in New Issue
Block a user