website?
Use a web framework like flask or Django
Web frameworks you can use: Django(popular) , flask, web io, tornado ...
Hello bro. I'm trying to create a program to extract name and date of birth from a pdf of my college admission form which has students details. I thought it'd be easy. I'll just use file operations, open pdf, read and search for name and date of birth string and write it to a text file. But pdf is not plain text. When i print the data of pdf is x2Qqc/x53f/xiu4 something like this. So i searched on Google and came across the PyPDF2 package. It reads and converts the pdf data to plain text and i can use it. But now i ran into another problem. I read the data from pdf and add it to a list. But /n gets added too along with the words. Okay just now i thought of this, what if i use rstrip to remove /n from end of every word. It might work. 🤔
It might work, but I think a better solution would be to use regex to find the fields/info you want. If you don't know regex yet, i think it's a good time to start learning them, start with the basics then advance with the time. Some resources you can use: To learn: - https://www.rexegg.com/ - https://www.regular-expressions.info/ To test your regexes: - https://regex101.com/
Oh. Yes regex is in my syllabus but i didn't thought it's important so i skipped. Okay thanks. I will go through it
Btw, i meant use regex in conjunction with that pdf library
Ah, no, sadly. By default it has a dark color though, but if you use an extension it looks horrible
Обсуждают сегодня