Download scripts/StackExtractor.py from recursal/StackingExchange: direct link, hf CLI and curl.
- Browser
- Download file 154 Bytes
-
https://huggingface.co/datasets/recursal/StackingExchange/resolve/main/scripts/StackExtractor.py
- Command line
-
hf download hf://datasets/recursal/StackingExchange/scripts/StackExtractor.py
-
curl -L -o StackExtractor.py https://huggingface.co/datasets/recursal/StackingExchange/resolve/main/scripts/StackExtractor.py
154 Bytes
| import subprocess, pathlib | |
| for file in pathlib.Path("stackexchange").glob("*.7z"): | |
| subprocess.call(["7z","e","-y",file, f'-o{file.with_suffix("")}']) |