<div align="center">
<h1>Bakaweb Rozvrh</h1>
![GitHub License](https://img.shields.io/github/license/MortikCZ/bakaweb-rozvrh)
![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/MortikCZ/Bakaweb-Rozvrh)
![GitHub last commit](https://img.shields.io/github/last-commit/MortikCZ/Bakaweb-Rozvrh)
<p>Jednoduchý nástroj pro extrakci rozvrhu z modulu Timetable Bakawebu. Data jsou získavána v HTML formátu a následně zpracována do JSON formátu.</p>
</div>
<h2 align = "center">Instalace</h2>
Tento nástroj je dostupný jako [PyPi balíček](https://pypi.org/project/bakaweb-rozvrh/). Pro instalaci je zapotřebí použít následující příkaz:
```bash
pip install bakawebrozvrh
```
<h2 align = "center">Použití</h2>
Funkce `get_timetable` má dva povinné parametry:
- `url` - URL adresa rozvrhu
- `output_file` - název souboru, do kterého se uloží rozvrh.
Vrací rozvrh ve formátu JSON.
Funkce `get_substitutions` má dva povinné parametry:
- `url` - URL adresa rozvrhu
- `output_file` - název souboru, do kterého se uloží změny.
Vrací změny v rozvrhu ve formátu JSON.
### Příklad použití
```python
import bakawebrozvrh
url = "https://bakalari.skola.cz/bakaweb/Timetable/Public/Permanent/Class/4U"
output_file = "timetable.json"
bakawebrozvrh.get_timetable(url, output_file)
```
Raw data
{
"_id": null,
"home_page": "https://github.com/MortikCZ/Bakaweb-Rozvrh",
"name": "bakaweb-rozvrh",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": "bakaweb timetable rozvrh extractor",
"author": "Luk\u00e1\u0161 S.",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/1a/54/fff84221189a9baef55e73bb9fa3ff5e6a1508c7c1d1e4ac1c9d99792691/bakaweb-rozvrh-1.0.tar.gz",
"platform": null,
"description": "<div align=\"center\">\n\n <h1>Bakaweb Rozvrh</h1>\n\n ![GitHub License](https://img.shields.io/github/license/MortikCZ/bakaweb-rozvrh)\n ![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/MortikCZ/Bakaweb-Rozvrh)\n ![GitHub last commit](https://img.shields.io/github/last-commit/MortikCZ/Bakaweb-Rozvrh)\n\n <p>Jednoduch\u00fd n\u00e1stroj pro extrakci rozvrhu z modulu Timetable Bakawebu. Data jsou z\u00edskav\u00e1na v HTML form\u00e1tu a n\u00e1sledn\u011b zpracov\u00e1na do JSON form\u00e1tu.</p>\n\n</div>\n\n<h2 align = \"center\">Instalace</h2>\n\nTento n\u00e1stroj je dostupn\u00fd jako [PyPi bal\u00ed\u010dek](https://pypi.org/project/bakaweb-rozvrh/). Pro instalaci je zapot\u0159eb\u00ed pou\u017e\u00edt n\u00e1sleduj\u00edc\u00ed p\u0159\u00edkaz:\n```bash\npip install bakawebrozvrh\n```\n\n<h2 align = \"center\">Pou\u017eit\u00ed</h2>\n\nFunkce `get_timetable` m\u00e1 dva povinn\u00e9 parametry:\n- `url` - URL adresa rozvrhu\n- `output_file` - n\u00e1zev souboru, do kter\u00e9ho se ulo\u017e\u00ed rozvrh.\n\nVrac\u00ed rozvrh ve form\u00e1tu JSON.\n\nFunkce `get_substitutions` m\u00e1 dva povinn\u00e9 parametry:\n- `url` - URL adresa rozvrhu\n- `output_file` - n\u00e1zev souboru, do kter\u00e9ho se ulo\u017e\u00ed zm\u011bny.\n\nVrac\u00ed zm\u011bny v rozvrhu ve form\u00e1tu JSON.\n\n### P\u0159\u00edklad pou\u017eit\u00ed\n```python\nimport bakawebrozvrh\n\nurl = \"https://bakalari.skola.cz/bakaweb/Timetable/Public/Permanent/Class/4U\"\noutput_file = \"timetable.json\"\nbakawebrozvrh.get_timetable(url, output_file)\n```\n\n\n\n\n\n\n\n",
"bugtrack_url": null,
"license": null,
"summary": "N\u00e1stroj pro extrahov\u00e1n\u00ed rozvrhu z Timetable modulu Bakawebu",
"version": "1.0",
"project_urls": {
"Bug Tracker": "https://github.com/MortikCZ/Bakaweb-Timetable/issues",
"Documentation": "https://github.com/MortikCZ/Bakaweb-Timetable#readme",
"Homepage": "https://github.com/MortikCZ/Bakaweb-Rozvrh",
"Source Code": "https://github.com/MortikCZ/Bakaweb-Timetable"
},
"split_keywords": [
"bakaweb",
"timetable",
"rozvrh",
"extractor"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "a425b83aad522469263beacb77c335d5f88705c2b08ecdf69eb530f4f31021a1",
"md5": "967f0551da8b721d856ce908fac00cdd",
"sha256": "32ff29b0f1c3bdfd6e3e548ea539c7d2ae2c495e3b904ab24bd74f8751d9674f"
},
"downloads": -1,
"filename": "bakaweb_rozvrh-1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "967f0551da8b721d856ce908fac00cdd",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 2859,
"upload_time": "2024-11-27T19:15:03",
"upload_time_iso_8601": "2024-11-27T19:15:03.084478Z",
"url": "https://files.pythonhosted.org/packages/a4/25/b83aad522469263beacb77c335d5f88705c2b08ecdf69eb530f4f31021a1/bakaweb_rozvrh-1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "1a54fff84221189a9baef55e73bb9fa3ff5e6a1508c7c1d1e4ac1c9d99792691",
"md5": "dfdcb9c4b3e62f952be0b219a7ca4a50",
"sha256": "5924420cb2a37ff20f69a4f6ad82e8540b3dd33e6f21650bccbec967cda910c3"
},
"downloads": -1,
"filename": "bakaweb-rozvrh-1.0.tar.gz",
"has_sig": false,
"md5_digest": "dfdcb9c4b3e62f952be0b219a7ca4a50",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 2974,
"upload_time": "2024-11-27T19:15:04",
"upload_time_iso_8601": "2024-11-27T19:15:04.716766Z",
"url": "https://files.pythonhosted.org/packages/1a/54/fff84221189a9baef55e73bb9fa3ff5e6a1508c7c1d1e4ac1c9d99792691/bakaweb-rozvrh-1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-27 19:15:04",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "MortikCZ",
"github_project": "Bakaweb-Rozvrh",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "bakaweb-rozvrh"
}