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")
|
LANGUAGES_PATH = path.join(path.dirname(__file__), "data", "languages.json")
|
||||||
STRINGS_PAGES = recompile('captcha-info|Please enable cookies|Completing the CAPTCHA', IGNORECASE)
|
STRINGS_PAGES = recompile('captcha-info|Please enable cookies|Completing the CAPTCHA', IGNORECASE)
|
||||||
STRINGS_TITLES = recompile('not found|blocked|attention required|cloudflare', 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 = {}
|
LANGUAGES_JSON = {}
|
||||||
WORKERS = 15
|
WORKERS = 15
|
||||||
CUSTOM_MESSAGE = 51
|
CUSTOM_MESSAGE = 51
|
||||||
@@ -273,7 +273,7 @@ def find_username_normal(req):
|
|||||||
with suppress(Exception):
|
with suppress(Exception):
|
||||||
session = Session()
|
session = Session()
|
||||||
session.headers.update(headers)
|
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
|
source = response.text
|
||||||
content = response.content
|
content = response.content
|
||||||
answer = dict((k.lower(), v.lower()) for k, v in response.headers.items())
|
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)
|
item = clean_up_item(item, argv.options)
|
||||||
temp_detected["detected"].append(item)
|
temp_detected["detected"].append(item)
|
||||||
else:
|
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)
|
item = clean_up_item(item, argv.options)
|
||||||
temp_detected["unknown"].append(item)
|
temp_detected["unknown"].append(item)
|
||||||
elif item["method"] == "find":
|
elif item["method"] == "find":
|
||||||
@@ -573,7 +573,7 @@ def check_user_cli(argv):
|
|||||||
item = clean_up_item(item, argv.options)
|
item = clean_up_item(item, argv.options)
|
||||||
temp_detected["detected"].append(item)
|
temp_detected["detected"].append(item)
|
||||||
elif item["method"] == "get":
|
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)
|
item = clean_up_item(item, argv.options)
|
||||||
temp_detected["unknown"].append(item)
|
temp_detected["unknown"].append(item)
|
||||||
else:
|
else:
|
||||||
@@ -671,4 +671,4 @@ if __name__ == "__main__":
|
|||||||
list_all_websites()
|
list_all_websites()
|
||||||
elif ARGV.mode == "fast":
|
elif ARGV.mode == "fast":
|
||||||
if ARGV.username != "" and ARGV.websites != "":
|
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] social-analyzer
|
||||||
[X] installing autopep8 & jq
|
[X] installing autopep8 & jq
|
||||||
[X] running autopep8
|
[X] running autopep8
|
||||||
|
|||||||
Reference in New Issue
Block a user