mirror of
https://github.com/soxoj/maigret.git
synced 2026-05-09 08:04:32 +00:00
Fixed work with id types, Orbys added
This commit is contained in:
+8
-1
@@ -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']
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user