Projects STRLCPY maigret Commits 8a865a1c
🤬
  • Op.gg fixes (#363)

    * Fixed op.gg sites
    
    * Added testing docs, fixed some error
    
    * Updated site list and statistics
  • Loading...
  • Soxoj committed with GitHub 3 years ago
    8a865a1c
    1 parent a29c3c6a
  • ■ ■ ■ ■ ■ ■
    docs/source/development.rst
    skipped 2 lines
    3 3  Development
    4 4  ==============
    5 5   
     6 +Testing
     7 +-------
     8 + 
     9 +It is recommended use Python 3.7/3.8 for test due to some conflicts in 3.9.
     10 + 
     11 +Install test requirements:
     12 + 
     13 +.. code-block:: console
     14 + 
     15 + pip install -r test-requirements.txt
     16 + 
     17 + 
     18 +Use the following commands to check Maigret:
     19 + 
     20 +.. code-block:: console
     21 + 
     22 + # run linter and typing checks
     23 + # order of checks%
     24 + # - critical syntax errors or undefined names
     25 + # - flake checks
     26 + # - mypy checks
     27 + make lint
     28 + 
     29 + # run testing with coverage html report
     30 + # current test coverage is 60%
     31 + make text
     32 + 
     33 + # open html report
     34 + open htmlcov/index.html
     35 + 
     36 + 
    6 37  How to publish new version of Maigret
    7 38  -------------------------------------
    8 39   
    skipped 62 lines
  • ■ ■ ■ ■
    maigret/checking.py
    skipped 131 lines
    132 132   error = CheckError("Unexpected", str(e))
    133 133   
    134 134   if error == "Invalid proxy response":
    135  - self.logger.debug(e, exc_info=True)
     135 + self.logger.debug(error, exc_info=True)
    136 136   
    137 137   return str(html_text), status_code, error
    138 138   
    skipped 754 lines
  • ■ ■ ■ ■ ■ ■
    maigret/resources/data.json
    skipped 16573 lines
    16574 16574   "br",
    16575 16575   "us"
    16576 16576   ],
    16577  - "checkType": "message",
    16578  - "presenseStrs": "common.SummonerHistory.Favorite",
    16579  - "absenceStrs": [
    16580  - "SummonerNotFoundLayout"
    16581  - ],
    16582  - "alexaRank": 331,
     16577 + "engine": "op.gg",
    16583 16578   "urlMain": "https://br.op.gg/",
    16584 16579   "url": "https://br.op.gg/summoner/userName={username}",
    16585 16580   "usernameClaimed": "adam",
    skipped 534 lines
    17120 17115   "gaming",
    17121 17116   "us"
    17122 17117   ],
    17123  - "checkType": "message",
    17124  - "presenseStrs": "common.SummonerHistory.Favorite",
    17125  - "absenceStrs": [
    17126  - "SummonerNotFoundLayout"
    17127  - ],
    17128  - "alexaRank": 331,
     17118 + "engine": "op.gg",
    17129 17119   "urlMain": "https://eune.op.gg/",
    17130 17120   "url": "https://eune.op.gg/summoner/userName={username}",
    17131 17121   "usernameClaimed": "adam",
    skipped 4 lines
    17136 17126   "gaming",
    17137 17127   "us"
    17138 17128   ],
    17139  - "checkType": "message",
    17140  - "presenseStrs": "common.SummonerHistory.Favorite",
    17141  - "absenceStrs": [
    17142  - "SummonerNotFoundLayout"
    17143  - ],
    17144  - "alexaRank": 331,
     17129 + "engine": "op.gg",
    17145 17130   "urlMain": "https://euw.op.gg/",
    17146 17131   "url": "https://euw.op.gg/summoner/userName={username}",
    17147 17132   "usernameClaimed": "blue",
    skipped 932 lines
    18080 18065   "tags": [
    18081 18066   "us"
    18082 18067   ],
    18083  - "checkType": "message",
    18084  - "presenseStrs": "common.SummonerHistory.Favorite",
    18085  - "absenceStrs": [
    18086  - "SummonerNotFoundLayout"
    18087  - ],
    18088  - "alexaRank": 331,
     18068 + "engine": "op.gg",
    18089 18069   "urlMain": "https://lan.op.gg/",
    18090 18070   "url": "https://lan.op.gg/summoner/userName={username}",
    18091 18071   "usernameClaimed": "adam",
    skipped 4 lines
    18096 18076   "gaming",
    18097 18077   "us"
    18098 18078   ],
    18099  - "checkType": "message",
    18100  - "presenseStrs": "common.SummonerHistory.Favorite",
    18101  - "absenceStrs": [
    18102  - "SummonerNotFoundLayout"
    18103  - ],
    18104  - "alexaRank": 331,
     18079 + "engine": "op.gg",
    18105 18080   "urlMain": "https://las.op.gg/",
    18106 18081   "url": "https://las.op.gg/summoner/userName={username}",
    18107 18082   "usernameClaimed": "adam",
    skipped 377 lines
    18485 18460   "tags": [
    18486 18461   "gaming"
    18487 18462   ],
    18488  - "checkType": "message",
    18489  - "presenseStrs": "common.SummonerHistory.Favorite",
    18490  - "absenceStrs": [
    18491  - "SummonerNotFoundLayout"
    18492  - ],
    18493  - "alexaRank": 331,
     18463 + "engine": "op.gg",
    18494 18464   "urlMain": "https://na.op.gg/",
    18495 18465   "url": "https://na.op.gg/summoner/userName={username}",
    18496 18466   "usernameClaimed": "adam",
    skipped 173 lines
    18670 18640   "gaming",
    18671 18641   "us"
    18672 18642   ],
    18673  - "checkType": "message",
    18674  - "presenseStrs": "common.SummonerHistory.Favorite",
    18675  - "absenceStrs": [
    18676  - "SummonerNotFoundLayout"
    18677  - ],
    18678  - "alexaRank": 331,
     18643 + "engine": "op.gg",
    18679 18644   "urlMain": "https://oce.op.gg/",
    18680 18645   "url": "https://oce.op.gg/summoner/userName={username}",
    18681 18646   "usernameClaimed": "adam",
    skipped 460 lines
    19142 19107   "ru",
    19143 19108   "us"
    19144 19109   ],
    19145  - "checkType": "message",
    19146  - "presenseStrs": "common.SummonerHistory.Favorite",
    19147  - "absenceStrs": [
    19148  - "SummonerNotFoundLayout"
    19149  - ],
    19150  - "alexaRank": 331,
     19110 + "engine": "op.gg",
    19151 19111   "urlMain": "https://ru.op.gg/",
    19152 19112   "url": "https://ru.op.gg/summoner/userName={username}",
    19153 19113   "usernameClaimed": "adam",
    skipped 540 lines
    19694 19654   "tr",
    19695 19655   "us"
    19696 19656   ],
    19697  - "checkType": "message",
    19698  - "presenseStrs": "common.SummonerHistory.Favorite",
    19699  - "absenceStrs": [
    19700  - "SummonerNotFoundLayout"
    19701  - ],
    19702  - "alexaRank": 331,
     19657 + "engine": "op.gg",
    19703 19658   "urlMain": "https://tr.op.gg/",
    19704 19659   "url": "https://tr.op.gg/summoner/userName={username}",
    19705 19660   "usernameClaimed": "adam",
    skipped 9347 lines
    29053 29008   "absenceStrs": [
    29054 29009   "404"
    29055 29010   ]
     29011 + }
     29012 + },
     29013 + "op.gg": {
     29014 + "name": "op.gg",
     29015 + "site": {
     29016 + "checkType": "message",
     29017 + "presenseStrs": [
     29018 + "<div class=\"profile-icon\">"
     29019 + ],
     29020 + "absenceStrs": [
     29021 + "<h2 class=\"header__title\">This summoner is not registered"
     29022 + ],
     29023 + "alexaRank": 331
    29056 29024   }
    29057 29025   }
    29058 29026   },
    skipped 59 lines
  • ■ ■ ■ ■
    sites.md
    skipped 2598 lines
    2599 2599  1. ![](https://www.google.com/s2/favicons?domain=https://www.hozpitality.com) [hozpitality (https://www.hozpitality.com)](https://www.hozpitality.com)*: top 100M*
    2600 2600  1. ![](https://www.google.com/s2/favicons?domain=https://kazanlashkigalab.com) [kazanlashkigalab.com (https://kazanlashkigalab.com)](https://kazanlashkigalab.com)*: top 100M, kz*
    2601 2601   
    2602  -Alexa.com rank data fetched at (2022-02-23 22:14:26.029891 UTC)
     2602 +Alexa.com rank data fetched at (2022-02-26 11:12:43.279519 UTC)
    2603 2603  ## Statistics
    2604 2604   
    2605 2605  Enabled/total sites: 2449/2595
    skipped 47 lines
Please wait...
Page is in error, reload to recover