mirror of
https://github.com/qeeqbox/social-analyzer.git
synced 2021-05-13 03:10:39 +03:00
🤖
This commit is contained in:
10
app.py
10
app.py
@@ -50,7 +50,7 @@ SITES_PATH = path.join(path.dirname(__file__), "data", "sites.json")
|
||||
LANGUAGES_PATH = path.join(path.dirname(__file__), "data", "languages.json")
|
||||
STRINGS_PAGES = recompile('captcha-info|Please enable cookies|Completing the CAPTCHA', IGNORECASE)
|
||||
STRINGS_TITLES = recompile('not found|blocked|attention required|cloudflare', IGNORECASE)
|
||||
STRINGS_META = recompile('regionsAllowed|width|height|color|rgba\(|charset|viewport|refresh|equiv', IGNORECASE)
|
||||
STRINGS_META = recompile(r'regionsAllowed|width|height|color|rgba\(|charset|viewport|refresh|equiv', IGNORECASE)
|
||||
LANGUAGES_JSON = {}
|
||||
WORKERS = 15
|
||||
CUSTOM_MESSAGE = 51
|
||||
@@ -273,7 +273,7 @@ def find_username_normal(req):
|
||||
with suppress(Exception):
|
||||
session = Session()
|
||||
session.headers.update(headers)
|
||||
response = session.get(site["url"].replace("{username}", username),timeout=5, verify=False)
|
||||
response = session.get(site["url"].replace("{username}", username), timeout=5, verify=False)
|
||||
source = response.text
|
||||
content = response.content
|
||||
answer = dict((k.lower(), v.lower()) for k, v in response.headers.items())
|
||||
@@ -564,7 +564,7 @@ def check_user_cli(argv):
|
||||
item = clean_up_item(item, argv.options)
|
||||
temp_detected["detected"].append(item)
|
||||
else:
|
||||
item = delete_keys(item, ["found", "rate", "status", "method", "good", "text","extracted", "metadata"])
|
||||
item = delete_keys(item, ["found", "rate", "status", "method", "good", "text", "extracted", "metadata"])
|
||||
item = clean_up_item(item, argv.options)
|
||||
temp_detected["unknown"].append(item)
|
||||
elif item["method"] == "find":
|
||||
@@ -573,7 +573,7 @@ def check_user_cli(argv):
|
||||
item = clean_up_item(item, argv.options)
|
||||
temp_detected["detected"].append(item)
|
||||
elif item["method"] == "get":
|
||||
item = delete_keys(item, ["found", "rate", "status", "method", "good", "text","extracted", "metadata"])
|
||||
item = delete_keys(item, ["found", "rate", "status", "method", "good", "text", "extracted", "metadata"])
|
||||
item = clean_up_item(item, argv.options)
|
||||
temp_detected["unknown"].append(item)
|
||||
else:
|
||||
@@ -671,4 +671,4 @@ if __name__ == "__main__":
|
||||
list_all_websites()
|
||||
elif ARGV.mode == "fast":
|
||||
if ARGV.username != "" and ARGV.websites != "":
|
||||
check_user_cli(ARGV)
|
||||
check_user_cli(ARGV)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Tue Apr 20 23:47:39 UTC 2021
|
||||
Thu Apr 29 04:39:56 UTC 2021
|
||||
[X] social-analyzer
|
||||
[X] installing autopep8 & jq
|
||||
[X] running autopep8
|
||||
|
||||
Reference in New Issue
Block a user