Похожие чаты

How can I simply make a python program into a

website?

8 ответов

19 просмотров

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

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

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

30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
Чёт не понял, я ж правильной функцией воспользовался чтобы вывести отладочную информацию? но что-то она не ловится
notme
18
Привет)) уже кажется эту тему перемусолили, но вот я так и не понял. Я сейчас сижу на 27дюймов 2к мониторе. На Актуальной макоси, если я куплю 27д 4к монитор: - будет ли изобр...
Vladislav Piskunov
16
Also, why can’t the community have a vote/ say when it comes to initiatives like buybacks. Isn’t the point of crypto decentralisation? Don’t we deserve input as long term supp...
👨🏽‍🦰
13
any reference of this implementation?
BitBuddha
29
Страшнейшая правда про списки ЦБ. С первых дней жизни P2P сферы, молодые человеки, начитавшись законодательной базы и "внутренних" документов, решили, что им противостоит сер...
Foxcool
3
У меня есть функция где происходит это: write_bit(buffer, 1); write_bit(buffer, 0); write_bit(buffer, 1); write_bit(buffer, 1); write_bit(buffer, 1); w...
~
14
Hi guys, any problem with Pulsebrige? Trying to transfer from wETH to ETH. First it tells me to connect my metamask "through mobile app" not desktop. Then I did and confirmed ...
Snowflakecrypto
13
Карта сайта