Skip to content

Commit

Permalink
Update scrapers_runner.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
RaresCode authored Sep 23, 2024
1 parent 5d283c4 commit 56783ba
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/scrapers_runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,24 @@ jobs:
env:
API_KEY: ${{ secrets.API_KEY }}
run: |
python3 sites/script_runner.py || true
echo "Continuing despite potential failure..."
# Define the scripts to exclude
EXCLUDE=("__init__.py" "script_runner.py" "setup_api.py" "update_logo.py" "website_scraper_api.py" "website_scraper_bs4.py" "website_scraper_selenium.py" "reinest.py" "typingdna.py" "netrom.py" "kaizengaming.py" "careerscenter.py" "brillio.py" "aeroportoradea.py" "mennekes.py" "iasidelivery.py" "apavital.py" "qubiz.py" "getCounty.py" "test.py")
# Run each Python script in the 'sites' directory except the excluded ones
for script in sites/*.py; do
script_name=$(basename "$script")
if [[ ! " ${EXCLUDE[@]} " =~ " ${script_name} " ]]; then
echo "Running: python3 $script"
python3 "$script" || echo "Error running $script"
else
echo "Skipping: $script_name"
fi
done
# - name: All scrapers run
# env:
# API_KEY: ${{ secrets.API_KEY }}
# run: |
# python3 sites/script_runner.py || true
# echo "Continuing despite potential failure..."

0 comments on commit 56783ba

Please sign in to comment.