# Scrapelo
This simple package provides functions for obtaining ELO scores for clubs available on [clubelo.com](http://clubelo.com/). <br>
If You wonder how does the ELO system work, You can read about it [here](http://clubelo.com/System).
## Features
### Get the current ELO scores of clubs for a given competition.
```
import scrapelo
scrapelo.get_competition_elo('Champions League')
```
![](https://raw.githubusercontent.com/AKapich/Scrapelo/main/ucl_table.png?token=GHSAT0AAAAAACONR7OMWQNWGEJBZBMLMR5GZPETJXA)
The same effect can be achieved by using the competition code instead of the competition name. You can find out the full list of codes [here](https://github.com/AKapich/Scrapelo/blob/main/country_codes.py).
```
import scrapelo
scrapelo.get_competition_elo('UCL')
```
For the country competitions the argument ought to be the country's name in English or the country's code.
```
import scrapelo
# two lines below will give You the same output
scrapelo.get_competition_elo('Spain')
scrapelo.get_competition_elo('ESP')
```
<br>
### Get the current ELO of a single club.
```
import scrapelo
# Function takes only club name as an argument
scrapelo.get_club_elo('Barcelona')
```
## Legal Scraping
The data is scraped legally, as the [robots.txt](http://clubelo.com/robots.txt) file on the website allows for it.
Raw data
{
"_id": null,
"home_page": "",
"name": "scrapelo",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "python,football,ELO,clubelo,scraping,data",
"author": "Aleks Kapich",
"author_email": "aleks.kapich@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/8e/8e/da56972241e364ae87a8e4faaf5e981769be4106e7f24863cea4f6869549/scrapelo-0.0.5.tar.gz",
"platform": null,
"description": "# Scrapelo\r\n\r\nThis simple package provides functions for obtaining ELO scores for clubs available on [clubelo.com](http://clubelo.com/). <br>\r\nIf You wonder how does the ELO system work, You can read about it [here](http://clubelo.com/System).\r\n\r\n## Features\r\n\r\n### Get the current ELO scores of clubs for a given competition.\r\n```\r\nimport scrapelo\r\nscrapelo.get_competition_elo('Champions League')\r\n```\r\n![](https://raw.githubusercontent.com/AKapich/Scrapelo/main/ucl_table.png?token=GHSAT0AAAAAACONR7OMWQNWGEJBZBMLMR5GZPETJXA)\r\n\r\nThe same effect can be achieved by using the competition code instead of the competition name. You can find out the full list of codes [here](https://github.com/AKapich/Scrapelo/blob/main/country_codes.py). \r\n```\r\nimport scrapelo\r\nscrapelo.get_competition_elo('UCL')\r\n```\r\n\r\nFor the country competitions the argument ought to be the country's name in English or the country's code. \r\n```\r\nimport scrapelo\r\n# two lines below will give You the same output\r\nscrapelo.get_competition_elo('Spain')\r\nscrapelo.get_competition_elo('ESP')\r\n```\r\n<br>\r\n\r\n### Get the current ELO of a single club.\r\n```\r\nimport scrapelo\r\n# Function takes only club name as an argument \r\nscrapelo.get_club_elo('Barcelona')\r\n```\r\n\r\n## Legal Scraping\r\n\r\nThe data is scraped legally, as the [robots.txt](http://clubelo.com/robots.txt) file on the website allows for it.\r\n",
"bugtrack_url": null,
"license": "",
"summary": "Package for scraping data from clubelo.com",
"version": "0.0.5",
"project_urls": null,
"split_keywords": [
"python",
"football",
"elo",
"clubelo",
"scraping",
"data"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "28b3c3867d9e46f01cd86be559b08dc2bfd2d7c120a72838c4d2b0617ff619f0",
"md5": "bb8b091119c33b7f213b30287de631cb",
"sha256": "61ef73e937e6039c658a43de60463327d90fc76d2e097a069eeedd13bc24b710"
},
"downloads": -1,
"filename": "scrapelo-0.0.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "bb8b091119c33b7f213b30287de631cb",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 4075,
"upload_time": "2024-03-03T17:30:37",
"upload_time_iso_8601": "2024-03-03T17:30:37.294449Z",
"url": "https://files.pythonhosted.org/packages/28/b3/c3867d9e46f01cd86be559b08dc2bfd2d7c120a72838c4d2b0617ff619f0/scrapelo-0.0.5-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "8e8eda56972241e364ae87a8e4faaf5e981769be4106e7f24863cea4f6869549",
"md5": "bb57783de1e5256d161766df867946bb",
"sha256": "8ee587bf0a2bb6cb4434a490b40e54b8ff8ad39da254046188355391136774a0"
},
"downloads": -1,
"filename": "scrapelo-0.0.5.tar.gz",
"has_sig": false,
"md5_digest": "bb57783de1e5256d161766df867946bb",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3541,
"upload_time": "2024-03-03T17:30:38",
"upload_time_iso_8601": "2024-03-03T17:30:38.424917Z",
"url": "https://files.pythonhosted.org/packages/8e/8e/da56972241e364ae87a8e4faaf5e981769be4106e7f24863cea4f6869549/scrapelo-0.0.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-03-03 17:30:38",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "scrapelo"
}