Name | lol-stats JSON |
Version |
1.0.1
JSON |
| download |
home_page | https://github.com/atahanuz/lol-stats |
Summary | Extract text from a YouTube video in a single command, using OpenAi's Whisper speech recognition model |
upload_time | 2023-11-11 16:58:15 |
maintainer | |
docs_url | None |
author | Atahan Uz |
requires_python | |
license | |
keywords |
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# lol-stats
Python script to find your League of Legends ranked statistics across all of your accounts.
This script finds your all time ranked statistics (Season 1 to Season 13) across all of your accounts and merges them. You will see your:
- Total Games
- Total Wins
- Total Loses
- Win rate
- Average kills
- Average deaths
- Average assists
- Average KDA
- Average gold
- Average CS
- Most kills in game
- Most deaths in a game
- Total double,triple, quadra and penta kills
- Average damage dealt
- Average damage received
for each champion and a grand total.
## Installation
```
pip install lol-stats
```
Google Chrome must be installed on your system. The program automatically installs ChromeDriver binaries required for Selenium web scrapping.
## Usage
Lauch the program:
```
import lol_stats
lol_stats.launch()
```
In console you'll see that the program is launched. Go to
http://localhost:8126 from a browser to interact with the program.
To run the program on a different port, you pass an optional argument to launch() function:
```
lol_stats.launch(port=1234)
```
- Enter all of your LOL accounts and their servers (euw, na, tr, kr etc.) and press "Submit". You can submit without any account to see an example result (Faker's account "Hide on bush" 😀)
- Now you should see "Gathering data for x accounts" and the program is working. You can see the progress in Python program's console. Each time a season data for an account is fetched, it is printed to the console. The program should usually take 20-60 seconds.
- Upon completion, you'll see the results in your browser. You can also download them using the "Download CSV" button. Python will automatically download it as result.csv for your convenience.
- If you want to rerun it for different accounts, refresh the browser.
Note: The program is multithreaded to process multiple accounts as quickly as possible. This may cause high CPU and RAM usage, which is normal.
## Example Output
<img src="https://i.imgur.com/4CDufV2.png" width="100%" height="100%">
## How it works
The program uses Selenium for web scrapping. It opens Google Chrome in background, visits op.gg page for each account and scrapes the data. Since op.gg doesn't provide an API for fast data retrieval, the only option is physically visiting it from browser. This is why the program is resource-intensive and can take some time.
# Notes
- The program fetches data from op.gg. If op.gg is unavailable the program won't work. If the data on op.gg is wrong so will be the program's results.
- Sometimes it takes long for op.gg to respond. In that case you may need to wait for 5-10 minutes, or you can try again later. Track the progress from Python console, it should print the progress like:
```
Data for accounts:
https://www.op.gg/summoners/kr/hide%20on%20bush/champions
started processing
installing chromedriver
installed chromedriver
concurrent execution
started https://www.op.gg/summoners/kr/hide%20on%20bush/champions
Page is fully loaded.
time= 0.1226658821105957 seconds
1
hide_on_bush
Recorded Season 2023 S2 for https://www.op.gg/summoners/kr/hide%20on%20bush/champions
time= 0.705498218536377 seconds
2
hide_on_bush
Recorded Season 2023 S1 for https://www.op.gg/summoners/kr/hide%20on%20bush/champions
time= 0.6393542289733887 seconds
...
--- 18.60 seconds ---
ENDED !
```
## Contact
Raise an issue on the GitHub repo:
https://github.com/atahanuz/lol-stats/
Raw data
{
"_id": null,
"home_page": "https://github.com/atahanuz/lol-stats",
"name": "lol-stats",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "Atahan Uz",
"author_email": "atahanuz23@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/73/e5/c7a792b4d019202a7ebdcb2edd5f35f4a6199431e618899cbdb38218ffbd/lol-stats-1.0.1.tar.gz",
"platform": null,
"description": "# lol-stats\nPython script to find your League of Legends ranked statistics across all of your accounts.\nThis script finds your all time ranked statistics (Season 1 to Season 13) across all of your accounts and merges them. You will see your:\n- Total Games\n- Total Wins\n- Total Loses\n- Win rate\n- Average kills\n- Average deaths\n- Average assists\n- Average KDA\n- Average gold\n- Average CS\n- Most kills in game\n- Most deaths in a game\n- Total double,triple, quadra and penta kills\n- Average damage dealt\n- Average damage received\n\nfor each champion and a grand total.\n\n\n## Installation\n```\npip install lol-stats\n```\n\nGoogle Chrome must be installed on your system. The program automatically installs ChromeDriver binaries required for Selenium web scrapping.\n\n## Usage\nLauch the program:\n\n```\nimport lol_stats\n\nlol_stats.launch()\n```\nIn console you'll see that the program is launched. Go to\nhttp://localhost:8126 from a browser to interact with the program.\n\nTo run the program on a different port, you pass an optional argument to launch() function:\n\n```\nlol_stats.launch(port=1234)\n```\n\n\n\n\n- Enter all of your LOL accounts and their servers (euw, na, tr, kr etc.) and press \"Submit\". You can submit without any account to see an example result (Faker's account \"Hide on bush\" \ud83d\ude00)\n- Now you should see \"Gathering data for x accounts\" and the program is working. You can see the progress in Python program's console. Each time a season data for an account is fetched, it is printed to the console. The program should usually take 20-60 seconds.\n- Upon completion, you'll see the results in your browser. You can also download them using the \"Download CSV\" button. Python will automatically download it as result.csv for your convenience.\n- If you want to rerun it for different accounts, refresh the browser.\n\nNote: The program is multithreaded to process multiple accounts as quickly as possible. This may cause high CPU and RAM usage, which is normal.\n\n## Example Output\n<img src=\"https://i.imgur.com/4CDufV2.png\" width=\"100%\" height=\"100%\">\n\n\n\n## How it works\nThe program uses Selenium for web scrapping. It opens Google Chrome in background, visits op.gg page for each account and scrapes the data. Since op.gg doesn't provide an API for fast data retrieval, the only option is physically visiting it from browser. This is why the program is resource-intensive and can take some time.\n\n\n\n# Notes\n- The program fetches data from op.gg. If op.gg is unavailable the program won't work. If the data on op.gg is wrong so will be the program's results.\n\n- Sometimes it takes long for op.gg to respond. In that case you may need to wait for 5-10 minutes, or you can try again later. Track the progress from Python console, it should print the progress like:\n\n```\nData for accounts:\nhttps://www.op.gg/summoners/kr/hide%20on%20bush/champions\nstarted processing\ninstalling chromedriver\ninstalled chromedriver\nconcurrent execution\nstarted https://www.op.gg/summoners/kr/hide%20on%20bush/champions\nPage is fully loaded.\ntime= 0.1226658821105957 seconds\n1\nhide_on_bush\nRecorded Season 2023 S2 for https://www.op.gg/summoners/kr/hide%20on%20bush/champions\ntime= 0.705498218536377 seconds\n2\nhide_on_bush\nRecorded Season 2023 S1 for https://www.op.gg/summoners/kr/hide%20on%20bush/champions\ntime= 0.6393542289733887 seconds\n...\n--- 18.60 seconds ---\nENDED !\n```\n\n## Contact\nRaise an issue on the GitHub repo:\nhttps://github.com/atahanuz/lol-stats/\n\n\n \n\n\n\n\n\n",
"bugtrack_url": null,
"license": "",
"summary": "Extract text from a YouTube video in a single command, using OpenAi's Whisper speech recognition model",
"version": "1.0.1",
"project_urls": {
"Homepage": "https://github.com/atahanuz/lol-stats"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "c1cc9e9bbd1dc18d6ef4371e7e9058899e2813246f963bcec680d039d12d050e",
"md5": "9f0033f09b583ee58db3543025ffba5e",
"sha256": "097369b03913b090ce084edca130e2043c6216a220c74a66fe52dce5b3605d77"
},
"downloads": -1,
"filename": "lol_stats-1.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "9f0033f09b583ee58db3543025ffba5e",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 39450,
"upload_time": "2023-11-11T16:58:13",
"upload_time_iso_8601": "2023-11-11T16:58:13.445678Z",
"url": "https://files.pythonhosted.org/packages/c1/cc/9e9bbd1dc18d6ef4371e7e9058899e2813246f963bcec680d039d12d050e/lol_stats-1.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "73e5c7a792b4d019202a7ebdcb2edd5f35f4a6199431e618899cbdb38218ffbd",
"md5": "3e145bf59bc5e4b5b93059a6b977922c",
"sha256": "a730bc99d767d7992eb000591f953acb493b00ce9b61bd989e20ef72e78e7efc"
},
"downloads": -1,
"filename": "lol-stats-1.0.1.tar.gz",
"has_sig": false,
"md5_digest": "3e145bf59bc5e4b5b93059a6b977922c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 40510,
"upload_time": "2023-11-11T16:58:15",
"upload_time_iso_8601": "2023-11-11T16:58:15.039337Z",
"url": "https://files.pythonhosted.org/packages/73/e5/c7a792b4d019202a7ebdcb2edd5f35f4a6199431e618899cbdb38218ffbd/lol-stats-1.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-11-11 16:58:15",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "atahanuz",
"github_project": "lol-stats",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "lol-stats"
}