Похожие чаты

How can I simply make a python program into a

website?

8 ответов

22 просмотра

Use a web framework like flask or Django

Web frameworks you can use: Django(popular) , flask, web io, tornado ...

Link 🪈
Use a web framework like flask or Django

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. 🤔

ANDRIO
Hello bro. I'm trying to create a program to extra...

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/

Link 🪈
It might work, but I think a better solution would...

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

ANDRIO
Oh. Yes regex is in my syllabus but i didn't thoug...

Btw, i meant use regex in conjunction with that pdf library

ANDRIO
screenshot Website is not dark mode friendly

Ah, no, sadly. By default it has a dark color though, but if you use an extension it looks horrible

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта