This commit is contained in:
helldh 2025-12-25 21:44:30 +03:00
commit 3c2137da2b
9 changed files with 737 additions and 0 deletions

18
scrapper.sh Executable file
View file

@ -0,0 +1,18 @@
#!/usr/bin/env bash
OUTPUT="all_code.txt"
ROOT="."
> "$OUTPUT"
find "$ROOT" \
-type d -name "__pycache__" -prune -o \
-type f -name "*.py" ! -name "*.pyc" \
-print | sort | while read -r file; do
echo "########################################" >> "$OUTPUT"
echo "# FILE: $file" >> "$OUTPUT"
echo "########################################" >> "$OUTPUT"
echo >> "$OUTPUT"
cat "$file" >> "$OUTPUT"
echo -e "\n\n" >> "$OUTPUT"
done