Add initial project setup with environment example, README, and requirements

main
Oliver Schütz 2025-01-25 16:39:58 +01:00
parent 98a62d540d
commit 945ee3ecd6
4 changed files with 43 additions and 1 deletions

4
.env.example Normal file
View File

@ -0,0 +1,4 @@
# .env
STUDY_MATERIAL_ROOT_DIR=YOUR_STUDY_MATERIAL_ROOT_DIRECTORY
MOODLE_USERNAME=YOUR_MOODLE_USERNAME
MOODLE_PASSWORD=YOUR_MOODLE_PASSWORD

10
.gitignore vendored
View File

@ -1,8 +1,10 @@
# Temporary files # Temporary files
**/*.log **/*.log
**/data **/data
**/out
**/.env **.env
**!.env.example
# IDE # IDE
**/.idea/ **/.idea/
@ -47,3 +49,9 @@
# Latex # Latex
!**/out/*.pdf !**/out/*.pdf
**/auxil/* **/auxil/*
# python
**/__pycache__/
**/.pytest_cache/
**/.mypy_cache/
**/.coverage

26
README.md Normal file
View File

@ -0,0 +1,26 @@
# Moodle Scraper
## Installation
### Windows
```bash
python -m venv .venv
.venv\Scripts\activate
```
### MacOS/Linux
```bash
python -m venv .venv
source .venv/bin/activate
```
```bash
pip install -r requirements.txt
```
## Usage
1. Make a .env file in which you specify the path to save the files and the username and password for your moodle account.
2. Run the program with:
```bash
python main.py
```

4
requirements.txt Normal file
View File

@ -0,0 +1,4 @@
python-dotenv==1.0.1
Requests==2.32.3
selenium==4.28.1
webdriver_manager==4.0.2