Сервис парсинга сайта https://freeproxyupdate.com/
Раз в пять часов сканирует и складывает найденные прокси в файл ~/fps_parser/res.txt
- Устанавливаем python
sudo apt update
sudo apt -y upgrade
sudo apt install -y python3-pip
- Создаем каталог приложения и копируем файлы проекта в него
md ~/fps_parser
cd ~/fps_parser
wget -O script.sh https://github.com/prog815/fps_parser/raw/main/script.sh
wget -O obr.py https://github.com/prog815/fps_parser/raw/main/obr.py
- Запускаем cron
RUN touch ~/fps_parser/update.log
RUN echo "42 */5 * * * cd ~/fps_parser; /bin/sh ./script.sh >> ./update.log 2>&1" > ~/fps_parser/crontab
RUN crontab ~/fps_parser/crontab