diff --git a/maigret/maigret.py b/maigret/maigret.py index 538f14f..a50b9aa 100755 --- a/maigret/maigret.py +++ b/maigret/maigret.py @@ -541,6 +541,7 @@ async def site_self_check(site, logger, semaphore, db: MaigretDatabase, silent=F query_notify, logger, timeout=30, + id_type=site.type, forced=True, no_progressbar=True, ) @@ -712,6 +713,10 @@ async def main(): dest="parse_url", default='', help="Parse page by URL and extract username and IDs to use for search." ) + parser.add_argument("--id-type", + dest="id_type", default='username', + help="Specify identifier(s) type (default: username)." + ) parser.add_argument("username", nargs='+', metavar='USERNAMES', action="store", @@ -770,7 +775,7 @@ async def main(): # Usernames initial list usernames = { - u: 'username' + u: args.id_type for u in args.username if u not in ['-'] } @@ -917,6 +922,8 @@ async def main(): # reporting for all the result if general_results: + if args.html or args.pdf: + print('Generating report info...') report_context = generate_report_context(general_results) # determine main username username = report_context['username'] diff --git a/maigret/resources/data.json b/maigret/resources/data.json index d6ea344..8bba65e 100644 --- a/maigret/resources/data.json +++ b/maigret/resources/data.json @@ -5641,21 +5641,26 @@ "GoogleMaps": { "tags": [ "global", - "maps", - "us" + "maps" ], "type": "gaia_id", - "checkType": "status_code", + "checkType": "message", + "presenseStrs": [ + "[\"Contributions by" + ], + "absenceStrs": [ + "My Contributions to Google Maps" + ], "alexaRank": 1, "url": "https://www.google.com/maps/contrib/{username}", "urlMain": "https://maps.google.com/", - "usernameClaimed": "blue", + "usernameClaimed": "105054951427011407574", "usernameUnclaimed": "noonewouldeverusethis7" }, "GooglePlayStore": { "tags": [ "global", - "us" + "apps" ], "checkType": "status_code", "alexaRank": 1, @@ -17805,6 +17810,22 @@ "usernameClaimed": "adam", "usernameUnclaimed": "noonewouldeverusethis7" }, + "Orbys": { + "tags": [ + "us" + ], + "checkType": "message", + "presenseStrs": [ + "profile_user_image" + ], + "absenceStrs": [ + "The page you are looking for cannot be found." + ], + "url": "https://orbys.net/{username}", + "urlMain": "https://orbys.net", + "usernameClaimed": "txmustang302", + "usernameUnclaimed": "noonewouldeverusethis7" + }, "spletnik": { "tags": [ "ru"