добавление нужных модулей
parent
91c4ad8ae6
commit
a37bd2929f
|
|
@ -2,7 +2,7 @@
|
|||
- Получаем и парсим данные с https://formats.saby.ru/
|
||||
- Выполняем валидацию данных для БД
|
||||
- Отправляем данные в БД oracle
|
||||
- Планировщик настроенный на определеное время
|
||||
- Планировщик настроенный на определеное время. Повторящий все процессы описанные в About сверху вниз.
|
||||
|
||||
# Usage
|
||||
**Боевой** запуск через **main.py**
|
||||
|
|
|
|||
|
|
@ -6,11 +6,11 @@ def run_parser(filename = 'main.py'):
|
|||
print("Запуск main.py...")
|
||||
subprocess.run(['python', filename])
|
||||
|
||||
def launch_the_scheduler():
|
||||
def launch_the_scheduler(h=6, m=0):
|
||||
scheduler = BlockingScheduler() # Создание планировщика
|
||||
|
||||
# Каждый день в 6:00 утра запуск run_parser()
|
||||
scheduler.add_job(run_parser, trigger=CronTrigger(hour=6, minute=00))
|
||||
scheduler.add_job(run_parser, trigger=CronTrigger(hour=h, minute=m))
|
||||
|
||||
print("Планировщик запущен. Нажмите Ctrl+C для остановки.")
|
||||
|
||||
|
|
|
|||
106
requirements.txt
106
requirements.txt
|
|
@ -1,84 +1,22 @@
|
|||
attrs==23.2.0
|
||||
Babel==2.10.3
|
||||
bcc==0.29.1
|
||||
bcrypt==3.2.2
|
||||
blinker==1.7.0
|
||||
Brlapi==0.8.5
|
||||
certifi==2023.11.17
|
||||
chardet==5.2.0
|
||||
click==8.1.6
|
||||
cloud-init==25.1.4
|
||||
colorama==0.4.6
|
||||
command-not-found==0.3
|
||||
configobj==5.0.8
|
||||
cryptography==41.0.7
|
||||
cupshelpers==1.0
|
||||
dbus-python==1.3.2
|
||||
defer==1.0.6
|
||||
distro==1.9.0
|
||||
distro-info==1.7+build1
|
||||
duplicity==2.1.4
|
||||
fasteners==0.18
|
||||
httplib2==0.20.4
|
||||
idna==3.6
|
||||
Jinja2==3.1.2
|
||||
jsonpatch==1.32
|
||||
jsonpointer==2.0
|
||||
jsonschema==4.10.3
|
||||
language-selector==0.1
|
||||
launchpadlib==1.11.0
|
||||
lazr.restfulclient==0.14.6
|
||||
lazr.uri==1.0.6
|
||||
louis==3.29.0
|
||||
Mako==1.3.2.dev0
|
||||
markdown-it-py==3.0.0
|
||||
MarkupSafe==2.1.5
|
||||
mdurl==0.1.2
|
||||
monotonic==1.6
|
||||
natsort==8.0.2
|
||||
nemo-compare==6.0.1
|
||||
netaddr==0.8.0
|
||||
netifaces==0.11.0
|
||||
oauthlib==3.2.2
|
||||
olefile==0.46
|
||||
paramiko==2.12.0
|
||||
pexpect==4.9.0
|
||||
pillow==10.2.0
|
||||
ptyprocess==0.7.0
|
||||
pycairo==1.25.1
|
||||
pycups==2.0.1
|
||||
Pygments==2.17.2
|
||||
PyGObject==3.48.2
|
||||
PyJWT==2.7.0
|
||||
PyNaCl==1.5.0
|
||||
pyparsing==3.1.1
|
||||
PyQt5==5.15.10
|
||||
PyQt5-sip==12.13.0
|
||||
pyrsistent==0.20.0
|
||||
pyserial==3.5
|
||||
python-apt==2.7.7+ubuntu5
|
||||
python-dateutil==2.8.2
|
||||
python-debian==0.1.49+ubuntu2
|
||||
python-linux-procfs==0.6.3
|
||||
pytz==2024.1
|
||||
pyudev==0.24.0
|
||||
pyxdg==0.28
|
||||
PyYAML==6.0.1
|
||||
requests==2.31.0
|
||||
rich==13.7.1
|
||||
setuptools==68.1.2
|
||||
six==1.16.0
|
||||
systemd-python==235
|
||||
typing_extensions==4.10.0
|
||||
ubuntu-drivers-common==0.0.0
|
||||
ubuntu-pro-client==8001
|
||||
ufw==0.36.2
|
||||
unattended-upgrades==0.1
|
||||
urllib3==2.0.7
|
||||
usb-creator==0.3.16
|
||||
wadllib==1.3.6
|
||||
wheel==0.42.0
|
||||
wxPython==4.2.1
|
||||
xdg==5
|
||||
xkit==0.0.0
|
||||
xlrd==2.0.1
|
||||
annotated-types==0.7.0
|
||||
APScheduler==3.11.0
|
||||
beautifulsoup4==4.13.5
|
||||
bs4==0.0.2
|
||||
certifi==2025.8.3
|
||||
cffi==1.17.1
|
||||
charset-normalizer==3.4.3
|
||||
cryptography==45.0.7
|
||||
hvac==2.3.0
|
||||
idna==3.10
|
||||
oracledb==3.3.0
|
||||
pycparser==2.22
|
||||
pydantic==2.11.7
|
||||
pydantic_core==2.33.2
|
||||
python-dateutil==2.9.0.post0
|
||||
requests==2.32.5
|
||||
six==1.17.0
|
||||
soupsieve==2.8
|
||||
typing-inspection==0.4.1
|
||||
typing_extensions==4.15.0
|
||||
tzlocal==5.3.1
|
||||
urllib3==2.5.0
|
||||
|
|
|
|||
Loading…
Reference in New Issue