mirror of
https://github.com/soxoj/maigret.git
synced 2026-05-07 06:24:35 +00:00
Default engines for specific cases added, +6 sites
This commit is contained in:
@@ -22641,6 +22641,48 @@
|
|||||||
"urlMain": "https://tripit.com",
|
"urlMain": "https://tripit.com",
|
||||||
"usernameUnclaimed": "alex",
|
"usernameUnclaimed": "alex",
|
||||||
"usernameClaimed": "noonewouldeverusethis7"
|
"usernameClaimed": "noonewouldeverusethis7"
|
||||||
|
},
|
||||||
|
"freelance.ru": {
|
||||||
|
"engine": "engine404get",
|
||||||
|
"url": "https://freelance.ru/{username}/",
|
||||||
|
"urlMain": "https://freelance.ru",
|
||||||
|
"usernameUnclaimed": "alex",
|
||||||
|
"usernameClaimed": "noonewouldeverusethis7"
|
||||||
|
},
|
||||||
|
"freelansim.ru": {
|
||||||
|
"engine": "engine404get",
|
||||||
|
"url": "https://freelansim.ru/freelancers/{username}",
|
||||||
|
"urlMain": "https://freelansim.ru",
|
||||||
|
"usernameUnclaimed": "alex",
|
||||||
|
"usernameClaimed": "noonewouldeverusethis7"
|
||||||
|
},
|
||||||
|
"fotolog.com": {
|
||||||
|
"engine": "engine404get",
|
||||||
|
"url": "http://fotolog.com/{username}",
|
||||||
|
"urlMain": "http://fotolog.com",
|
||||||
|
"usernameUnclaimed": "red",
|
||||||
|
"usernameClaimed": "noonewouldeverusethis7"
|
||||||
|
},
|
||||||
|
"thoughts.com": {
|
||||||
|
"engine": "engine404get",
|
||||||
|
"url": "http://thoughts.com/profile/{username}",
|
||||||
|
"urlMain": "http://thoughts.com",
|
||||||
|
"usernameUnclaimed": "red",
|
||||||
|
"usernameClaimed": "noonewouldeverusethis7"
|
||||||
|
},
|
||||||
|
"hackernoon.com": {
|
||||||
|
"engine": "engine404message",
|
||||||
|
"url": "https://hackernoon.com/{username}",
|
||||||
|
"urlMain": "https://hackernoon.com",
|
||||||
|
"usernameUnclaimed": "god",
|
||||||
|
"usernameClaimed": "noonewouldeverusethis7"
|
||||||
|
},
|
||||||
|
"intigriti.com": {
|
||||||
|
"engine": "engine404message",
|
||||||
|
"url": "https://intigriti.com/public/profile/{username}",
|
||||||
|
"urlMain": "https://intigriti.com",
|
||||||
|
"usernameUnclaimed": "alex",
|
||||||
|
"usernameClaimed": "noonewouldeverusethis7"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
@@ -22724,6 +22766,22 @@
|
|||||||
"site": {
|
"site": {
|
||||||
"checkType": "response_url"
|
"checkType": "response_url"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"engine404get": {
|
||||||
|
"name": "engine404get",
|
||||||
|
"site": {
|
||||||
|
"checkType": "status_code",
|
||||||
|
"requestHeadOnly": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"engine404message": {
|
||||||
|
"name": "engine404message",
|
||||||
|
"site": {
|
||||||
|
"checkType": "message",
|
||||||
|
"absenceStrs": [
|
||||||
|
"404"
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+2
-1
@@ -117,7 +117,8 @@ class MaigretSite:
|
|||||||
# remove list items
|
# remove list items
|
||||||
if isinstance(engine_data[k], list) and is_exists:
|
if isinstance(engine_data[k], list) and is_exists:
|
||||||
for f in engine_data[k]:
|
for f in engine_data[k]:
|
||||||
self_copy.__dict__[field].remove(f)
|
if f in self_copy.__dict__[field]:
|
||||||
|
self_copy.__dict__[field].remove(f)
|
||||||
continue
|
continue
|
||||||
if is_exists:
|
if is_exists:
|
||||||
del self_copy.__dict__[field]
|
del self_copy.__dict__[field]
|
||||||
|
|||||||
Reference in New Issue
Block a user