From a7f31416b4fbc5afe6168bec0a2cd91f2fa9c81e Mon Sep 17 00:00:00 2001 From: MeghdadFadaee Date: Mon, 18 Nov 2024 13:38:24 +0330 Subject: [PATCH] change block --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index c803d1c..6c745cd 100644 --- a/main.py +++ b/main.py @@ -32,7 +32,7 @@ def make_message(html: str) -> str: soup = BeautifulSoup(html, 'html.parser') # table = soup.find('table', id='ctl01_ctl00_myDataList') - block_needle = 'بلوک A2' + block_needle = 'بلوک A4' try: paragraphs = soup.find_all('p') block = soup.find('p', string=lambda text: isinstance(text, str) and block_needle in text)