To check if it is installed:
python3 --version
To check if it is installed:
pip3
Otherwise install them. The way depends on platform.
$ pip3 install bs4
$ pip3 install python-dotenv
$ python3 p.py
Run script in background:
nohup python3 -u p.py &
Check python processes:
ps ax | grep p.py
Edit the cron tasks:
crontab -e
Run it every 15 minutes:
*/15 * * * * cd /ABSOLUTE_PATH_TO_DIR/ && python3 p.py >> /ABSOLUTE_PATH_TO_DIR/log.txt