Introduced --retries flag, made thorough refactoring

- updated sites list
- test scripts linting
This commit is contained in:
Soxoj
2021-05-01 23:51:48 +03:00
parent 7fd4a2c516
commit 5ee91f6659
18 changed files with 6182 additions and 4943 deletions
+7 -17
View File
@@ -8,40 +8,30 @@ from maigret.maigret import self_check
from maigret.sites import MaigretDatabase
EXAMPLE_DB = {
'engines': {
},
'engines': {},
'sites': {
"GooglePlayStore": {
"tags": [
"global",
"us"
],
"tags": ["global", "us"],
"disabled": False,
"checkType": "status_code",
"alexaRank": 1,
"url": "https://play.google.com/store/apps/developer?id={username}",
"urlMain": "https://play.google.com/store",
"usernameClaimed": "Facebook_nosuchname",
"usernameUnclaimed": "noonewouldeverusethis7"
"usernameUnclaimed": "noonewouldeverusethis7",
},
"Reddit": {
"tags": [
"news",
"social",
"us"
],
"tags": ["news", "social", "us"],
"checkType": "status_code",
"presenseStrs": [
"totalKarma"
],
"presenseStrs": ["totalKarma"],
"disabled": True,
"alexaRank": 17,
"url": "https://www.reddit.com/user/{username}",
"urlMain": "https://www.reddit.com/",
"usernameClaimed": "blue",
"usernameUnclaimed": "noonewouldeverusethis7"
"usernameUnclaimed": "noonewouldeverusethis7",
},
}
},
}