{"id":24059633,"url":"https://github.com/kubadavid/smoodle-offline","last_synced_at":"2026-05-15T00:04:57.051Z","repository":{"id":270298358,"uuid":"909470917","full_name":"KubaDavid/Smoodle-Offline","owner":"KubaDavid","description":"This tool is designed for students to download and organize course content from Moodle for offline reading.","archived":false,"fork":false,"pushed_at":"2024-12-28T20:33:54.000Z","size":7,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-18T04:03:06.222Z","etag":null,"topics":["moodle","python","selenium"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KubaDavid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-28T19:57:30.000Z","updated_at":"2025-01-02T14:21:17.000Z","dependencies_parsed_at":"2024-12-30T05:47:03.895Z","dependency_job_id":"022788ce-7369-460e-9cc2-06c3ba6d50ef","html_url":"https://github.com/KubaDavid/Smoodle-Offline","commit_stats":null,"previous_names":["kubadavid/smoodle-offline"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KubaDavid%2FSmoodle-Offline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KubaDavid%2FSmoodle-Offline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KubaDavid%2FSmoodle-Offline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KubaDavid%2FSmoodle-Offline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KubaDavid","download_url":"https://codeload.github.com/KubaDavid/Smoodle-Offline/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240859798,"owners_count":19869219,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["moodle","python","selenium"],"created_at":"2025-01-09T06:15:36.821Z","updated_at":"2026-05-15T00:04:57.014Z","avatar_url":"https://github.com/KubaDavid.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Šmoodle Offline\n\n## Overview\nThis tool is designed for students to download and organize course content from Moodle for offline reading. It uses Python with Selenium to crawl through Moodle course sections, parts, and chapters, and compiles all the downloaded content into a single, easy-to-navigate HTML file.\n\n---\n\n## Requirements\n- Python 3.8 or higher\n- Google Chrome installed\n- Chromedriver compatible with your Chrome version\n\n### Install dependencies from `requirements.txt`\n```bash\npip install -r requirements.txt\n```\n\n---\n\n## Setting Up the Environment\n1. Create a `.env` file in the project directory with the following structure:\n```\nDOMAIN=moodle.domain.cz\nCOURSE_ID=123456\nDOWNLOAD_DIR=downloads\nMOODLE_SESSION_COOKIE=your-moodlesession-cookie-value\n```\n2. Replace `your-moodlesession-cookie-value` with your Moodle session cookie (see below for details).\n\n---\n\n## Obtaining the Moodle Session Cookie\n### Steps to get the `MoodleSession` cookie:\n1. Open your web browser (Chrome or Firefox) and log in to Moodle.\n2. Right-click anywhere on the page and select **Inspect** (or press `F12`).\n3. Go to the **Application** tab (Chrome) or **Storage** tab (Firefox).\n4. Under **Storage**, click **Cookies**.\n5. Select your Moodle domain (e.g., `moodle.domain.cz`).\n6. Look for the cookie named `MoodleSession`.\n7. Copy the **Value** of the cookie.\n8. Paste the value into your `.env` file like this:\n```\nMOODLE_SESSION_COOKIE=your_cookie_value_here\n```\n\n---\n\n## Running the Script\n```bash\npython moodle_crawler_selenium.py\n```\n\nThe script will:\n1. Crawl through sections, parts, and chapters.\n2. Download and organize the content.\n3. Save all content into one HTML file named `combined_course_content.html` in the specified download directory.\n\n---\n\n## Output\n- The combined HTML file can be found in the specified `DOWNLOAD_DIR`.\n- It includes structured content with headings for sections, parts, and chapters.\n\n---\n\n## License\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkubadavid%2Fsmoodle-offline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkubadavid%2Fsmoodle-offline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkubadavid%2Fsmoodle-offline/lists"}