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,
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']
+26 -5
View File
@@ -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"