Merge pull request #368 from shahlin/master

Added 7Cups site; Fixed typos
pull/370/head
Siddharth Dushantha 5 years ago committed by GitHub
commit bd909ee567
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -83,10 +83,10 @@ optional arguments:
rank in popularity.
--folderoutput FOLDEROUTPUT, -fo FOLDEROUTPUT
If using multiple usernames, the output of the results
will be saved at this folder.
will be saved to this folder.
--output OUTPUT, -o OUTPUT
If using single username, the output of the result
will be saved at this file.
will be saved to this file.
--tor, -t Make requests over Tor; increases runtime; requires
Tor to be installed and in system path.
--unique-tor, -u Make requests over Tor with new Tor circuit after each

@ -16,6 +16,13 @@
"username_claimed": "blue",
"username_unclaimed": "noonewouldeverusethis7"
},
"7Cups": {
"errorType": "status_code",
"url": "https://www.7cups.com/@{}",
"urlMain": "https://www.7cups.com/",
"username_claimed": "blue",
"username_unclaimed": "noonewouldeverusethis7"
},
"9GAG": {
"errorType": "status_code",
"rank": 402,

@ -197,7 +197,7 @@ def sherlock(username, site_data, verbose=False, tor=False, unique_tor=False, pr
}
if "headers" in net_info:
#Override/append any extra headers required by a given site.
# Override/append any extra headers required by a given site.
headers.update(net_info["headers"])
# Don't make request if username is invalid for the site
@ -216,11 +216,11 @@ def sherlock(username, site_data, verbose=False, tor=False, unique_tor=False, pr
results_site["url_user"] = url
url_probe = net_info.get("urlProbe")
if url_probe is None:
#Probe URL is normal one seen by people out on the web.
# Probe URL is normal one seen by people out on the web.
url_probe = url
else:
#There is a special URL for probing existence separate
#from where the user profile normally can be found.
# There is a special URL for probing existence separate
# from where the user profile normally can be found.
url_probe = url_probe.format(username)
request_method = session.get
@ -380,10 +380,10 @@ def main():
action="store_true", dest="rank", default=False,
help="Present websites ordered by their Alexa.com global rank in popularity.")
parser.add_argument("--folderoutput", "-fo", dest="folderoutput",
help="If using multiple usernames, the output of the results will be saved at this folder."
help="If using multiple usernames, the output of the results will be saved to this folder."
)
parser.add_argument("--output", "-o", dest="output",
help="If using single username, the output of the result will be saved at this file."
help="If using single username, the output of the result will be saved to this file."
)
parser.add_argument("--tor", "-t",
action="store_true", dest="tor", default=False,
@ -464,7 +464,7 @@ def main():
else:
raise ValueError
except ValueError:
raise Exception("Prameter --check_proxies/-cp must be a positive intiger.")
raise Exception("Parameter --check_proxies/-cp must be a positive integer.")
if args.tor or args.unique_tor:
print("Using Tor to make requests")
@ -505,7 +505,7 @@ def main():
if site_data_all is None:
# Check if the file exists otherwise exit.
if not os.path.exists(data_file_path):
print("JSON file at doesn't exist.")
print("JSON file doesn't exist.")
print(
"If this is not a file but a website, make sure you have appended http:// or https://.")
sys.exit(1)

Loading…
Cancel
Save