Skip to content

dankrasilnikov/Jobba-Hunt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prerequisites

Before starting, make sure you have the necessary tools installed:

  • Python 3 (with venv and pip support)
  • Cron for setting up periodic task execution

Installing Python and Dependencies

  1. Update package lists and install Python:

    sudo apt update
    sudo apt install python3 python3-venv python3-pip -y
  2. Check installed versions of Python and pip:

    python3 --version
    pip3 --version

Project Setup

  1. Navigate to the project directory:

    cd /path/to/your/project
  2. Create and activate a virtual environment:

    python3 -m venv venv
    source venv/bin/activate
  3. Install dependencies from requirements.txt:

    pip install -r requirements.txt
    playwright install

Setting up Cron for Automatic Execution

  1. Open the Cron editor to configure a schedule:

    crontab -e
  2. Add the following line to run the task every 10 minutes:

    */10 * * * * /path/to/your/project/run_bot.sh >> /path/to/your/project/bot.log 2>&1

    This command will run the run_bot.sh script every 10 minutes and log outputs to bot.log.

  3. Start the Cron service (if it is not already running):

    sudo service cron start

Running the Project Manually

To manually run the script, execute the following command:

python ./index.py

Useful Commands

  • Activate the virtual environment:
    source venv/bin/activate
  • Deactivate the virtual environment:
    deactivate

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published