mirror of
https://github.com/soxoj/maigret.git
synced 2026-05-07 06:24:35 +00:00
Top-sites arg bugfix, twitter checking fix
This commit is contained in:
+1
-1
@@ -654,7 +654,7 @@ async def main():
|
|||||||
"On the other hand, this may cause a long delay to gather all results."
|
"On the other hand, this may cause a long delay to gather all results."
|
||||||
)
|
)
|
||||||
parser.add_argument("--top-sites",
|
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)."
|
help="Count of sites for checking ranked by Alexa Top (default: 500)."
|
||||||
)
|
)
|
||||||
parser.add_argument("--print-not-found",
|
parser.add_argument("--print-not-found",
|
||||||
|
|||||||
+3
-1
@@ -37,6 +37,9 @@ def save_html_report(username_results: list):
|
|||||||
if not dictionary:
|
if not dictionary:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
if dictionary.get('is_similar'):
|
||||||
|
continue
|
||||||
|
|
||||||
status = dictionary.get('status')
|
status = dictionary.get('status')
|
||||||
if status.ids_data:
|
if status.ids_data:
|
||||||
dictionary['ids_data'] = status.ids_data
|
dictionary['ids_data'] = status.ids_data
|
||||||
@@ -84,7 +87,6 @@ def save_html_report(username_results: list):
|
|||||||
else:
|
else:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if not dictionary.get('is_similar'):
|
|
||||||
# ignore non-exact search results
|
# ignore non-exact search results
|
||||||
if status.tags:
|
if status.tags:
|
||||||
for t in status.tags:
|
for t in status.tags:
|
||||||
|
|||||||
@@ -13446,7 +13446,7 @@
|
|||||||
"sec-ch-ua": "Google Chrome\";v=\"87\", \" Not;A Brand\";v=\"99\", \"Chromium\";v=\"87\"",
|
"sec-ch-ua": "Google Chrome\";v=\"87\", \" Not;A Brand\";v=\"99\", \"Chromium\";v=\"87\"",
|
||||||
"authorization": "Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA",
|
"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",
|
"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",
|
"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",
|
"checkType": "message",
|
||||||
|
|||||||
Reference in New Issue
Block a user