добавление нужных модулей
parent
91c4ad8ae6
commit
a37bd2929f
|
|
@ -2,7 +2,7 @@
|
||||||
- Получаем и парсим данные с https://formats.saby.ru/
|
- Получаем и парсим данные с https://formats.saby.ru/
|
||||||
- Выполняем валидацию данных для БД
|
- Выполняем валидацию данных для БД
|
||||||
- Отправляем данные в БД oracle
|
- Отправляем данные в БД oracle
|
||||||
- Планировщик настроенный на определеное время
|
- Планировщик настроенный на определеное время. Повторящий все процессы описанные в About сверху вниз.
|
||||||
|
|
||||||
# Usage
|
# Usage
|
||||||
**Боевой** запуск через **main.py**
|
**Боевой** запуск через **main.py**
|
||||||
|
|
|
||||||
|
|
@ -6,11 +6,11 @@ def run_parser(filename = 'main.py'):
|
||||||
print("Запуск main.py...")
|
print("Запуск main.py...")
|
||||||
subprocess.run(['python', filename])
|
subprocess.run(['python', filename])
|
||||||
|
|
||||||
def launch_the_scheduler():
|
def launch_the_scheduler(h=6, m=0):
|
||||||
scheduler = BlockingScheduler() # Создание планировщика
|
scheduler = BlockingScheduler() # Создание планировщика
|
||||||
|
|
||||||
# Каждый день в 6:00 утра запуск run_parser()
|
# Каждый день в 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 для остановки.")
|
print("Планировщик запущен. Нажмите Ctrl+C для остановки.")
|
||||||
|
|
||||||
|
|
|
||||||
106
requirements.txt
106
requirements.txt
|
|
@ -1,84 +1,22 @@
|
||||||
attrs==23.2.0
|
annotated-types==0.7.0
|
||||||
Babel==2.10.3
|
APScheduler==3.11.0
|
||||||
bcc==0.29.1
|
beautifulsoup4==4.13.5
|
||||||
bcrypt==3.2.2
|
bs4==0.0.2
|
||||||
blinker==1.7.0
|
certifi==2025.8.3
|
||||||
Brlapi==0.8.5
|
cffi==1.17.1
|
||||||
certifi==2023.11.17
|
charset-normalizer==3.4.3
|
||||||
chardet==5.2.0
|
cryptography==45.0.7
|
||||||
click==8.1.6
|
hvac==2.3.0
|
||||||
cloud-init==25.1.4
|
idna==3.10
|
||||||
colorama==0.4.6
|
oracledb==3.3.0
|
||||||
command-not-found==0.3
|
pycparser==2.22
|
||||||
configobj==5.0.8
|
pydantic==2.11.7
|
||||||
cryptography==41.0.7
|
pydantic_core==2.33.2
|
||||||
cupshelpers==1.0
|
python-dateutil==2.9.0.post0
|
||||||
dbus-python==1.3.2
|
requests==2.32.5
|
||||||
defer==1.0.6
|
six==1.17.0
|
||||||
distro==1.9.0
|
soupsieve==2.8
|
||||||
distro-info==1.7+build1
|
typing-inspection==0.4.1
|
||||||
duplicity==2.1.4
|
typing_extensions==4.15.0
|
||||||
fasteners==0.18
|
tzlocal==5.3.1
|
||||||
httplib2==0.20.4
|
urllib3==2.5.0
|
||||||
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
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue