https://github.com/magnusrodseth/unzipper-archive
⚠️ Deprecated ⚠️
https://github.com/magnusrodseth/unzipper-archive
bash python python3 shell zip
Last synced: 12 months ago
JSON representation
⚠️ Deprecated ⚠️
- Host: GitHub
- URL: https://github.com/magnusrodseth/unzipper-archive
- Owner: magnusrodseth
- Archived: true
- Created: 2021-09-01T12:18:29.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2022-08-17T06:54:32.000Z (almost 4 years ago)
- Last Synced: 2025-03-15T18:52:44.429Z (over 1 year ago)
- Topics: bash, python, python3, shell, zip
- Language: Python
- Homepage:
- Size: 25.4 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Unzipper 📂
## Description ✏️
This repository was developed out of frustration related to the tedious process of downloading and grading student deliverables.
Before following the **Running the application** below, make sure you place the zipped file in the `unzipper` directory.
## Directory Structure 📂
After running the script, the directories `deliverables` and `feedback` are generated. The files contained in these folders are named after each student's username. Use the `.txt` files in the `feedback` directory to easily write student feedback. When you are done giving the feedback, simply `Copy + Paste` the contents of the `.txt` file to the comment section in BlackBoard.
## Validate files with W3 Validator 🔍
Do you want to "automagically" validate all `.html`, `.css` and `.js` files for an assignment using W3 Validator? Simply use the `validate.sh` script to recursively navigate through all subdirectories for an assignment and `POST` the relevant files. The result is stored as a `.json` file in each student's deliverable directory.
**`Terminal`**
```sh
# Execute the script from the unzipper directory and simply name the assignment directory
sh validate.sh assignment-1
```
**`about_html.json`**
```json
// An example of a result from W3 Validator
{
"messages": [
{
"type": "error",
"lastLine": 16,
"lastColumn": 82,
"firstColumn": 9,
"message": "Bad value “100px” for attribute “width” on element “img”: Expected a digit but saw “p” instead.",
"extract": " \n
\n ",
"hiliteStart": 10,
"hiliteLength": 74
}
]
}
```
## Developer Information 🙋🏼♂️
Developed by Magnus Rødseth.
## Running the application ✅
```sh
cd unzipper
# Unzip and structure files
python3 unzip.py zipped_filename destination_directory
# Validate all students' .html, .css and .js files
sh validate.sh assignment_directory
```