mirror of
https://github.com/soxoj/maigret.git
synced 2026-05-07 06:24:35 +00:00
Op.gg fixes (#363)
* Fixed op.gg sites * Added testing docs, fixed some error * Updated site list and statistics
This commit is contained in:
@@ -3,6 +3,37 @@
|
|||||||
Development
|
Development
|
||||||
==============
|
==============
|
||||||
|
|
||||||
|
Testing
|
||||||
|
-------
|
||||||
|
|
||||||
|
It is recommended use Python 3.7/3.8 for test due to some conflicts in 3.9.
|
||||||
|
|
||||||
|
Install test requirements:
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
|
pip install -r test-requirements.txt
|
||||||
|
|
||||||
|
|
||||||
|
Use the following commands to check Maigret:
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
|
# run linter and typing checks
|
||||||
|
# order of checks%
|
||||||
|
# - critical syntax errors or undefined names
|
||||||
|
# - flake checks
|
||||||
|
# - mypy checks
|
||||||
|
make lint
|
||||||
|
|
||||||
|
# run testing with coverage html report
|
||||||
|
# current test coverage is 60%
|
||||||
|
make text
|
||||||
|
|
||||||
|
# open html report
|
||||||
|
open htmlcov/index.html
|
||||||
|
|
||||||
|
|
||||||
How to publish new version of Maigret
|
How to publish new version of Maigret
|
||||||
-------------------------------------
|
-------------------------------------
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -132,7 +132,7 @@ class SimpleAiohttpChecker(CheckerBase):
|
|||||||
error = CheckError("Unexpected", str(e))
|
error = CheckError("Unexpected", str(e))
|
||||||
|
|
||||||
if error == "Invalid proxy response":
|
if error == "Invalid proxy response":
|
||||||
self.logger.debug(e, exc_info=True)
|
self.logger.debug(error, exc_info=True)
|
||||||
|
|
||||||
return str(html_text), status_code, error
|
return str(html_text), status_code, error
|
||||||
|
|
||||||
|
|||||||
+22
-54
@@ -16574,12 +16574,7 @@
|
|||||||
"br",
|
"br",
|
||||||
"us"
|
"us"
|
||||||
],
|
],
|
||||||
"checkType": "message",
|
"engine": "op.gg",
|
||||||
"presenseStrs": "common.SummonerHistory.Favorite",
|
|
||||||
"absenceStrs": [
|
|
||||||
"SummonerNotFoundLayout"
|
|
||||||
],
|
|
||||||
"alexaRank": 331,
|
|
||||||
"urlMain": "https://br.op.gg/",
|
"urlMain": "https://br.op.gg/",
|
||||||
"url": "https://br.op.gg/summoner/userName={username}",
|
"url": "https://br.op.gg/summoner/userName={username}",
|
||||||
"usernameClaimed": "adam",
|
"usernameClaimed": "adam",
|
||||||
@@ -17120,12 +17115,7 @@
|
|||||||
"gaming",
|
"gaming",
|
||||||
"us"
|
"us"
|
||||||
],
|
],
|
||||||
"checkType": "message",
|
"engine": "op.gg",
|
||||||
"presenseStrs": "common.SummonerHistory.Favorite",
|
|
||||||
"absenceStrs": [
|
|
||||||
"SummonerNotFoundLayout"
|
|
||||||
],
|
|
||||||
"alexaRank": 331,
|
|
||||||
"urlMain": "https://eune.op.gg/",
|
"urlMain": "https://eune.op.gg/",
|
||||||
"url": "https://eune.op.gg/summoner/userName={username}",
|
"url": "https://eune.op.gg/summoner/userName={username}",
|
||||||
"usernameClaimed": "adam",
|
"usernameClaimed": "adam",
|
||||||
@@ -17136,12 +17126,7 @@
|
|||||||
"gaming",
|
"gaming",
|
||||||
"us"
|
"us"
|
||||||
],
|
],
|
||||||
"checkType": "message",
|
"engine": "op.gg",
|
||||||
"presenseStrs": "common.SummonerHistory.Favorite",
|
|
||||||
"absenceStrs": [
|
|
||||||
"SummonerNotFoundLayout"
|
|
||||||
],
|
|
||||||
"alexaRank": 331,
|
|
||||||
"urlMain": "https://euw.op.gg/",
|
"urlMain": "https://euw.op.gg/",
|
||||||
"url": "https://euw.op.gg/summoner/userName={username}",
|
"url": "https://euw.op.gg/summoner/userName={username}",
|
||||||
"usernameClaimed": "blue",
|
"usernameClaimed": "blue",
|
||||||
@@ -18080,12 +18065,7 @@
|
|||||||
"tags": [
|
"tags": [
|
||||||
"us"
|
"us"
|
||||||
],
|
],
|
||||||
"checkType": "message",
|
"engine": "op.gg",
|
||||||
"presenseStrs": "common.SummonerHistory.Favorite",
|
|
||||||
"absenceStrs": [
|
|
||||||
"SummonerNotFoundLayout"
|
|
||||||
],
|
|
||||||
"alexaRank": 331,
|
|
||||||
"urlMain": "https://lan.op.gg/",
|
"urlMain": "https://lan.op.gg/",
|
||||||
"url": "https://lan.op.gg/summoner/userName={username}",
|
"url": "https://lan.op.gg/summoner/userName={username}",
|
||||||
"usernameClaimed": "adam",
|
"usernameClaimed": "adam",
|
||||||
@@ -18096,12 +18076,7 @@
|
|||||||
"gaming",
|
"gaming",
|
||||||
"us"
|
"us"
|
||||||
],
|
],
|
||||||
"checkType": "message",
|
"engine": "op.gg",
|
||||||
"presenseStrs": "common.SummonerHistory.Favorite",
|
|
||||||
"absenceStrs": [
|
|
||||||
"SummonerNotFoundLayout"
|
|
||||||
],
|
|
||||||
"alexaRank": 331,
|
|
||||||
"urlMain": "https://las.op.gg/",
|
"urlMain": "https://las.op.gg/",
|
||||||
"url": "https://las.op.gg/summoner/userName={username}",
|
"url": "https://las.op.gg/summoner/userName={username}",
|
||||||
"usernameClaimed": "adam",
|
"usernameClaimed": "adam",
|
||||||
@@ -18485,12 +18460,7 @@
|
|||||||
"tags": [
|
"tags": [
|
||||||
"gaming"
|
"gaming"
|
||||||
],
|
],
|
||||||
"checkType": "message",
|
"engine": "op.gg",
|
||||||
"presenseStrs": "common.SummonerHistory.Favorite",
|
|
||||||
"absenceStrs": [
|
|
||||||
"SummonerNotFoundLayout"
|
|
||||||
],
|
|
||||||
"alexaRank": 331,
|
|
||||||
"urlMain": "https://na.op.gg/",
|
"urlMain": "https://na.op.gg/",
|
||||||
"url": "https://na.op.gg/summoner/userName={username}",
|
"url": "https://na.op.gg/summoner/userName={username}",
|
||||||
"usernameClaimed": "adam",
|
"usernameClaimed": "adam",
|
||||||
@@ -18670,12 +18640,7 @@
|
|||||||
"gaming",
|
"gaming",
|
||||||
"us"
|
"us"
|
||||||
],
|
],
|
||||||
"checkType": "message",
|
"engine": "op.gg",
|
||||||
"presenseStrs": "common.SummonerHistory.Favorite",
|
|
||||||
"absenceStrs": [
|
|
||||||
"SummonerNotFoundLayout"
|
|
||||||
],
|
|
||||||
"alexaRank": 331,
|
|
||||||
"urlMain": "https://oce.op.gg/",
|
"urlMain": "https://oce.op.gg/",
|
||||||
"url": "https://oce.op.gg/summoner/userName={username}",
|
"url": "https://oce.op.gg/summoner/userName={username}",
|
||||||
"usernameClaimed": "adam",
|
"usernameClaimed": "adam",
|
||||||
@@ -19142,12 +19107,7 @@
|
|||||||
"ru",
|
"ru",
|
||||||
"us"
|
"us"
|
||||||
],
|
],
|
||||||
"checkType": "message",
|
"engine": "op.gg",
|
||||||
"presenseStrs": "common.SummonerHistory.Favorite",
|
|
||||||
"absenceStrs": [
|
|
||||||
"SummonerNotFoundLayout"
|
|
||||||
],
|
|
||||||
"alexaRank": 331,
|
|
||||||
"urlMain": "https://ru.op.gg/",
|
"urlMain": "https://ru.op.gg/",
|
||||||
"url": "https://ru.op.gg/summoner/userName={username}",
|
"url": "https://ru.op.gg/summoner/userName={username}",
|
||||||
"usernameClaimed": "adam",
|
"usernameClaimed": "adam",
|
||||||
@@ -19694,12 +19654,7 @@
|
|||||||
"tr",
|
"tr",
|
||||||
"us"
|
"us"
|
||||||
],
|
],
|
||||||
"checkType": "message",
|
"engine": "op.gg",
|
||||||
"presenseStrs": "common.SummonerHistory.Favorite",
|
|
||||||
"absenceStrs": [
|
|
||||||
"SummonerNotFoundLayout"
|
|
||||||
],
|
|
||||||
"alexaRank": 331,
|
|
||||||
"urlMain": "https://tr.op.gg/",
|
"urlMain": "https://tr.op.gg/",
|
||||||
"url": "https://tr.op.gg/summoner/userName={username}",
|
"url": "https://tr.op.gg/summoner/userName={username}",
|
||||||
"usernameClaimed": "adam",
|
"usernameClaimed": "adam",
|
||||||
@@ -29054,6 +29009,19 @@
|
|||||||
"404"
|
"404"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"op.gg": {
|
||||||
|
"name": "op.gg",
|
||||||
|
"site": {
|
||||||
|
"checkType": "message",
|
||||||
|
"presenseStrs": [
|
||||||
|
"<div class=\"profile-icon\">"
|
||||||
|
],
|
||||||
|
"absenceStrs": [
|
||||||
|
"<h2 class=\"header__title\">This summoner is not registered"
|
||||||
|
],
|
||||||
|
"alexaRank": 331
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tags": [
|
"tags": [
|
||||||
|
|||||||
@@ -2599,7 +2599,7 @@ Rank data fetched from Alexa by domains.
|
|||||||
1.  [hozpitality (https://www.hozpitality.com)](https://www.hozpitality.com)*: top 100M*
|
1.  [hozpitality (https://www.hozpitality.com)](https://www.hozpitality.com)*: top 100M*
|
||||||
1.  [kazanlashkigalab.com (https://kazanlashkigalab.com)](https://kazanlashkigalab.com)*: top 100M, kz*
|
1.  [kazanlashkigalab.com (https://kazanlashkigalab.com)](https://kazanlashkigalab.com)*: top 100M, kz*
|
||||||
|
|
||||||
Alexa.com rank data fetched at (2022-02-23 22:14:26.029891 UTC)
|
Alexa.com rank data fetched at (2022-02-26 11:12:43.279519 UTC)
|
||||||
## Statistics
|
## Statistics
|
||||||
|
|
||||||
Enabled/total sites: 2449/2595
|
Enabled/total sites: 2449/2595
|
||||||
|
|||||||
Reference in New Issue
Block a user