Skip to content

Daily Python Script #200

Daily Python Script

Daily Python Script #200

Workflow file for this run

name: Daily Python Script
on:
schedule:
- cron: '0 */6 * * *' # Schedule to run at midnight UTC every day
push:
branches:
- master
jobs:
run-python-script:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.10.13 # Choose the Python version you need
- name: Install dependencies
run: |
pip install -r requirements.txt
- name: Run Python script
run: python search.py
env:
SHODAN_API_KEY: ${{ secrets.SHODAN_API_KEY }}
OTX_API_KEY: ${{ secrets.OTX_API_KEY }}
CENSYS_API_ID: ${{ secrets.CENSYS_API_ID }}
CENSYS_API_SECRET: ${{ secrets.CENSYS_API_SECRET }}