testsAndMisc-archive/python_pkg/extract_links/run.sh
Krzysztof kuhy Rudnicki 22333931cc refactor: rename folders to fix N999, INP001, S311 linting rules
- Rename PYTHON/ to python_pkg/ (fix N999 uppercase folder)
- Rename camelCase folders to snake_case:
  - randomJPG -> random_jpg
  - tagDivider -> tag_divider
  - downloadCats -> download_cats
  - keyboardCoop -> keyboard_coop
  - extractLinks -> extract_links
  - scapeWebsite -> scrape_website
- Rename camelCase files:
  - generateJpeg.py -> generate_jpeg.py
  - tagDivider.py -> tag_divider.py
- Rename poker-modifier-app to poker_modifier_app (fix INP001)
- Add __init__.py to poker_modifier_app
- Replace random module with secrets.SystemRandom (fix S311)
- Fix S110 try-except-pass with contextlib.suppress
- Update all imports and config references
2025-11-30 21:20:17 +01:00

15 lines
333 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
# Wrapper to run the extractor. Usage:
# ./run.sh path/to/input.html [output.txt]
SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
if [[ $# -lt 1 || $# -gt 2 ]]; then
echo "Usage: $0 <input.html> [output.txt]" >&2
exit 1
fi
python3 "$SCRIPT_DIR/main.py" "$@"