diff --git a/maigret/maigret.py b/maigret/maigret.py index 025701a..20d6bcc 100755 --- a/maigret/maigret.py +++ b/maigret/maigret.py @@ -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", diff --git a/maigret/report.py b/maigret/report.py index 958df81..58c697b 100644 --- a/maigret/report.py +++ b/maigret/report.py @@ -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.') diff --git a/maigret/resources/data.json b/maigret/resources/data.json index 7153628..6827447 100644 --- a/maigret/resources/data.json +++ b/maigret/resources/data.json @@ -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",