Add initial project setup with environment example, README, and requirements
parent
98a62d540d
commit
945ee3ecd6
|
@ -0,0 +1,4 @@
|
||||||
|
# .env
|
||||||
|
STUDY_MATERIAL_ROOT_DIR=YOUR_STUDY_MATERIAL_ROOT_DIRECTORY
|
||||||
|
MOODLE_USERNAME=YOUR_MOODLE_USERNAME
|
||||||
|
MOODLE_PASSWORD=YOUR_MOODLE_PASSWORD
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
```
|
|
@ -0,0 +1,4 @@
|
||||||
|
python-dotenv==1.0.1
|
||||||
|
Requests==2.32.3
|
||||||
|
selenium==4.28.1
|
||||||
|
webdriver_manager==4.0.2
|
Loading…
Reference in New Issue