Top-sites arg bugfix, twitter checking fix

This commit is contained in:
Soxoj
2021-01-08 16:52:10 +03:00
parent e4765d1ed9
commit 66a3d8ee52
3 changed files with 9 additions and 7 deletions
+1 -1
View File
@@ -654,7 +654,7 @@ async def main():
"On the other hand, this may cause a long delay to gather all results."
)
parser.add_argument("--top-sites",
action="store", default=500,
action="store", default=500, type=int,
help="Count of sites for checking ranked by Alexa Top (default: 500)."
)
parser.add_argument("--print-not-found",
+7 -5
View File
@@ -37,6 +37,9 @@ def save_html_report(username_results: list):
if not dictionary:
continue
if dictionary.get('is_similar'):
continue
status = dictionary.get('status')
if status.ids_data:
dictionary['ids_data'] = status.ids_data
@@ -84,11 +87,10 @@ def save_html_report(username_results: list):
else:
continue
if not dictionary.get('is_similar'):
# ignore non-exact search results
if status.tags:
for t in status.tags:
tags[t] = tags.get(t, 0) + 1
# ignore non-exact search results
if status.tags:
for t in status.tags:
tags[t] = tags.get(t, 0) + 1
brief_text.append(f'Search by {id_type} {username} returned {found_accounts} accounts.')
+1 -1
View File
@@ -13446,7 +13446,7 @@
"sec-ch-ua": "Google Chrome\";v=\"87\", \" Not;A Brand\";v=\"99\", \"Chromium\";v=\"87\"",
"authorization": "Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA",
"user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36",
"x-guest-token": "1347256342462009351"
"x-guest-token": "1347530204982476800"
},
"urlProbe": "https://twitter.com/i/api/graphql/ZRnOhhXPwue_JGILb9TNug/UserByScreenName?variables=%7B%22screen_name%22%3A%22{username}%22%2C%22withHighlightedLabel%22%3Atrue%7D",
"checkType": "message",