enter image description here
Hello everyone, I could use a little help. I want to create a Python code to extract data from a PDF like in the picture above and organize it into an Excel file. Do you think I will succeed? This is what I’ve tried so far, but I’m not sure, it doesn’t seem to lead me anywhere.
<code>import PyPDF2
import re
from openpyxl import Workbook
def extract_information(text):
# Inițializăm listele pentru brand, nume produs, cod produs și caracteristici
brands = []
product_names = []
product_codes = []
characteristics = [[] for _ in range(4)]
</code>
<code>import PyPDF2
import re
from openpyxl import Workbook
def extract_information(text):
# Inițializăm listele pentru brand, nume produs, cod produs și caracteristici
brands = []
product_names = []
product_codes = []
characteristics = [[] for _ in range(4)]
</code>
import PyPDF2
import re
from openpyxl import Workbook
def extract_information(text):
# Inițializăm listele pentru brand, nume produs, cod produs și caracteristici
brands = []
product_names = []
product_codes = []
characteristics = [[] for _ in range(4)]