Fixed work with id types, Orbys added

This commit is contained in:
Soxoj
2021-01-17 19:44:23 +03:00
parent b303cdbfdb
commit 375ff52663
2 changed files with 34 additions and 6 deletions
+8 -1
View File
@@ -541,6 +541,7 @@ async def site_self_check(site, logger, semaphore, db: MaigretDatabase, silent=F
query_notify, query_notify,
logger, logger,
timeout=30, timeout=30,
id_type=site.type,
forced=True, forced=True,
no_progressbar=True, no_progressbar=True,
) )
@@ -712,6 +713,10 @@ async def main():
dest="parse_url", default='', dest="parse_url", default='',
help="Parse page by URL and extract username and IDs to use for search." 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", parser.add_argument("username",
nargs='+', metavar='USERNAMES', nargs='+', metavar='USERNAMES',
action="store", action="store",
@@ -770,7 +775,7 @@ async def main():
# Usernames initial list # Usernames initial list
usernames = { usernames = {
u: 'username' u: args.id_type
for u in args.username for u in args.username
if u not in ['-'] if u not in ['-']
} }
@@ -917,6 +922,8 @@ async def main():
# reporting for all the result # reporting for all the result
if general_results: if general_results:
if args.html or args.pdf:
print('Generating report info...')
report_context = generate_report_context(general_results) report_context = generate_report_context(general_results)
# determine main username # determine main username
username = report_context['username'] username = report_context['username']
+26 -5
View File
@@ -5641,21 +5641,26 @@
"GoogleMaps": { "GoogleMaps": {
"tags": [ "tags": [
"global", "global",
"maps", "maps"
"us"
], ],
"type": "gaia_id", "type": "gaia_id",
"checkType": "status_code", "checkType": "message",
"presenseStrs": [
"[\"Contributions by"
],
"absenceStrs": [
"My Contributions to Google Maps"
],
"alexaRank": 1, "alexaRank": 1,
"url": "https://www.google.com/maps/contrib/{username}", "url": "https://www.google.com/maps/contrib/{username}",
"urlMain": "https://maps.google.com/", "urlMain": "https://maps.google.com/",
"usernameClaimed": "blue", "usernameClaimed": "105054951427011407574",
"usernameUnclaimed": "noonewouldeverusethis7" "usernameUnclaimed": "noonewouldeverusethis7"
}, },
"GooglePlayStore": { "GooglePlayStore": {
"tags": [ "tags": [
"global", "global",
"us" "apps"
], ],
"checkType": "status_code", "checkType": "status_code",
"alexaRank": 1, "alexaRank": 1,
@@ -17805,6 +17810,22 @@
"usernameClaimed": "adam", "usernameClaimed": "adam",
"usernameUnclaimed": "noonewouldeverusethis7" "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": { "spletnik": {
"tags": [ "tags": [
"ru" "ru"