Consider using the pymupdf_layout package for a greatly improved page layout analysis. 29/09/26: BÁO GIÁ DUNG MÔI NGÀY 29/09/2026 30 mặt hàng | NCC: TOP, SAMCHEM, BRENN TAG, KAISER, THIÊN NGHĨA, CLP, DVL, NAM BÌNH, GIA ANH, TOPSAIL 06/10/26: BÁO GIÁ DUNG MÔI NGÀY 06/10/2026 30 mặt hàng | NCC: TOP, SAMCHEM, BRENN TAG, KAISER, THIÊN NGHĨA, VÂN LONG, DVL, NAM BÌNH, GIA ANH, TOPSAIL 13/10/26: BÁO GIÁ DUNG MÔI NGÀY 13/10/2026 30 mặt hàng | NCC: TOP, SAMCHEM, BRENN TAG, KAISER, THIÊN NGHĨA, VÂN LONG, DVL, NAM BÌNH, GIA ANH, TOPSAIL Traceback (most recent call last): File "C:\Claw 2\_b91_so_gia_dungmoi.py", line 107, in them_so_sanh(v['ten'], (a['dd_nums'] or [None])[-1], (b['dd_nums'] or [None])[-1]) File "C:\Claw 2\_b91_so_gia_dungmoi.py", line 92, in them_so_sanh ga, gb = a_item[0], b_item[0] ~~~~~~^^^ TypeError: 'int' object is not subscriptable