feat(diff): adding file management and diff to extract files
This commit is contained in:
parent
b8552eaefa
commit
97c8331866
4 changed files with 86 additions and 7 deletions
32
webscrape-bank/run.sh
Executable file
32
webscrape-bank/run.sh
Executable file
|
|
@ -0,0 +1,32 @@
|
|||
#!/bin/bash
|
||||
|
||||
PIP_PACKAGES=("python-dotenv" "pytest-playwright")
|
||||
|
||||
if [ "$1" == "del" ]; then
|
||||
rm -rf .venv
|
||||
echo ".venv/ removed, restart the program again"
|
||||
fi
|
||||
|
||||
if [ -d .venv ]; then
|
||||
echo ".venv/ found!"
|
||||
|
||||
source .venv/bin/activate
|
||||
|
||||
python src/main.py
|
||||
|
||||
else
|
||||
echo ".venv/ not found!"
|
||||
echo "Creating new venv/"
|
||||
|
||||
python -m venv .venv
|
||||
source .venv/bin/activate
|
||||
|
||||
for i in "${PIP_PACKAGES[@]}"
|
||||
do
|
||||
pip install $i
|
||||
done
|
||||
|
||||
playwright install
|
||||
|
||||
python src/main.py
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue