Merge pull request #111 from soxoj/fp-fixes-18-04-21

Some false positives fixes
This commit is contained in:
soxoj
2021-04-18 15:26:11 +03:00
committed by GitHub
2 changed files with 18 additions and 6 deletions
+14 -5
View File
@@ -117,6 +117,7 @@
"usernameUnclaimed": "noonewouldeverusethis7" "usernameUnclaimed": "noonewouldeverusethis7"
}, },
"24open": { "24open": {
"disabled": true,
"tags": [ "tags": [
"dating", "dating",
"ru", "ru",
@@ -606,7 +607,12 @@
], ],
"regexCheck": "^[^\\.]+$", "regexCheck": "^[^\\.]+$",
"checkType": "message", "checkType": "message",
"absenceStrs": "Leaderboard", "presenseStrs": [
"Profile"
],
"absenceStrs": [
"You are being"
],
"alexaRank": 5317, "alexaRank": 5317,
"url": "https://www.alltrails.com/members/{username}", "url": "https://www.alltrails.com/members/{username}",
"urlMain": "https://www.alltrails.com/", "urlMain": "https://www.alltrails.com/",
@@ -10170,7 +10176,9 @@
"ru" "ru"
], ],
"checkType": "message", "checkType": "message",
"absenceStrs": "\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043d\u0435 \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d \u0438 \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u043f\u0440\u043e\u0444\u0438\u043b\u044f \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430.", "absenceStrs": [
"\u0417\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u043c\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442"
],
"alexaRank": 427429, "alexaRank": 427429,
"url": "https://www.prizyvnik.info/members/?username={username}", "url": "https://www.prizyvnik.info/members/?username={username}",
"urlMain": "https://www.prizyvnik.info", "urlMain": "https://www.prizyvnik.info",
@@ -12111,7 +12119,7 @@
"us" "us"
], ],
"headers": { "headers": {
"authorization": "Bearer BQD2HAPvSlZkuoFflR2L6YOns9-DRL_YSCCpmyozsml_FZYf8sICoKQpz3JqJ2JHrlUMm9K56bgw2BPbyJg" "authorization": "Bearer BQC38O_gP1qY7X8Ui7RsgyutAuZ2QissgeFgsDEX6siaE_dAFmzV0mWMSziGB_dLErQwtfJZa7qM9IsmNHI"
}, },
"errors": { "errors": {
"Spotify is currently not available in your country.": "Access denied in your country, use proxy/vpn" "Spotify is currently not available in your country.": "Access denied in your country, use proxy/vpn"
@@ -13413,7 +13421,7 @@
"sec-ch-ua": "Google Chrome\";v=\"87\", \" Not;A Brand\";v=\"99\", \"Chromium\";v=\"87\"", "sec-ch-ua": "Google Chrome\";v=\"87\", \" Not;A Brand\";v=\"99\", \"Chromium\";v=\"87\"",
"authorization": "Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA", "authorization": "Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA",
"user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36", "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36",
"x-guest-token": "1381699376133857282" "x-guest-token": "1383754510309355527"
}, },
"errors": { "errors": {
"Bad guest token": "x-guest-token update required" "Bad guest token": "x-guest-token update required"
@@ -13790,7 +13798,7 @@
"video" "video"
], ],
"headers": { "headers": {
"Authorization": "jwt eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2MTgyNTg2ODAsInVzZXJfaWQiOm51bGwsImFwcF9pZCI6NTg0NzksInNjb3BlcyI6InB1YmxpYyIsInRlYW1fdXNlcl9pZCI6bnVsbH0.gRqKPO3uS5pqVzYh0lHOGKSUAwq5dfIu7q7yfxoIgEE" "Authorization": "jwt eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2MTg3NDg3MDAsInVzZXJfaWQiOm51bGwsImFwcF9pZCI6NTg0NzksInNjb3BlcyI6InB1YmxpYyIsInRlYW1fdXNlcl9pZCI6bnVsbH0.MDKsnj8PbyC0qoxMpJG-s12azMVLirnJNPpGuu5pRjk"
}, },
"activation": { "activation": {
"url": "https://vimeo.com/_rv/viewer", "url": "https://vimeo.com/_rv/viewer",
@@ -13920,6 +13928,7 @@
"usernameUnclaimed": "noonewouldeverusethis7" "usernameUnclaimed": "noonewouldeverusethis7"
}, },
"Volgogradru": { "Volgogradru": {
"disabled": true,
"tags": [ "tags": [
"ru" "ru"
], ],
+4 -1
View File
@@ -183,12 +183,15 @@ async def submit_dialog(db, url_exists, cookie_file):
# check for existence # check for existence
matched_sites = list(filter(lambda x: domain_raw in x.url_main + x.url, db.sites)) matched_sites = list(filter(lambda x: domain_raw in x.url_main + x.url, db.sites))
if matched_sites: if matched_sites:
print(f'Sites with domain "{domain_raw}" already exists in the Maigret database!') print(f'Sites with domain "{domain_raw}" already exists in the Maigret database!')
status = lambda s: '(disabled)' if s.disabled else '' status = lambda s: '(disabled)' if s.disabled else ''
url_block = lambda s: f'\n\t{s.url_main}\n\t{s.url}' url_block = lambda s: f'\n\t{s.url_main}\n\t{s.url}'
print('\n'.join([f'{site.name} {status(site)}{url_block(site)}' for site in matched_sites])) print('\n'.join([f'{site.name} {status(site)}{url_block(site)}' for site in matched_sites]))
return False
if input(f'Do you want to continue? [yN] ').lower() in 'n':
return False
url_mainpage = extract_mainpage_url(url_exists) url_mainpage = extract_mainpage_url(url_exists)