From 393888243aad72cbf2869b6aec6b2d1c76f88589 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D0=B5=D0=B2?= Date: Thu, 24 Jul 2025 12:36:24 +0500 Subject: [PATCH] =?UTF-8?q?=D0=93=D0=BE=D1=82=D0=BE=D0=B2=D1=8B=D0=B9=20?= =?UTF-8?q?=D1=80=D0=B0=D0=B1=D0=BE=D1=87=D0=B0=D1=8F=20=D0=B2=D0=B5=D1=80?= =?UTF-8?q?=D1=81=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cor_func.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/cor_func.py b/cor_func.py index 1ad2193..074e53c 100644 --- a/cor_func.py +++ b/cor_func.py @@ -1,6 +1,5 @@ import requests from bs4 import BeautifulSoup -from pprint import pprint import re @@ -52,10 +51,10 @@ def parse_date_report(url=str): date, id_date = re.search(regex, text).groups() return date, id_date -def parse_reports(soup=BeautifulSoup, - report_title = str, - url_formats = str, - name_title = str): +def parse_reports(soup=BeautifulSoup, # HTML объект + report_title = str, # строка ввида: 'report/fns' + url_formats = str, # Строка ввида: 'https://formats.saby.ru' + name_title = str): # имя тайтла: 'fns' """ Достаются все необходимые данные, возвращаются в ввиде словаря: {106538: ('fns', 'НД по косвенным налогам', '01.08.23', '5.04')}