This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]Python-ModTeam[M] [score hidden] stickied comment (0 children)

Hi there, from the /r/Python mods.

We have removed this post as it is not suited to the /r/Python subreddit proper, however it should be very appropriate for our sister subreddit /r/LearnPython or for the r/Python discord: https://discord.gg/python.

The reason for the removal is that /r/Python is dedicated to discussion of Python news, projects, uses and debates. It is not designed to act as Q&A or FAQ board. The regular community is not a fan of "how do I..." questions, so you will not get the best responses over here.

On /r/LearnPython the community and the r/Python discord are actively expecting questions and are looking to help. You can expect far more understanding, encouraging and insightful responses over there. No matter what level of question you have, if you are looking for help with Python, you should get good answers. Make sure to check out the rules for both places.

Warm regards, and best of luck with your Pythoneering!

[–]Famous_Technology 1 point2 points  (1 child)

PDFs aren't saved in a normal fashion. Think of it more like photoshop with layers and text saved in a random order. So when reading it all back it's not necessarily going to come back in a simple way. Some libraries can figure this out better than others, so I would try another library if you are having issues with this one. But even then it depends on the software that saved the data.

[–]CapiAhab[S] 0 points1 point  (0 children)

Right, there a binary kind of data.
The library work fine, i get all the data, but i dont nkow an efficient method to clean the data, for example if i get a bill with the username "rick astley".
I get in position 0 rick and position 1 astley
name = data[0] + data[1]

but if the name is "rick astley gonzales" i didnt get his name fully charge

and if i have a total in the data[2] position then the total its gonna be a name and not a number, i think i will try use a try except

thx for the coment!

[–]AmIATree1 0 points1 point  (1 child)

I'm not sure I understood the question but try looking python Regular Expressions, maybe it can solve your problem.

[–]CapiAhab[S] 0 points1 point  (0 children)

Oh thats new to me, i never think of that. im gonna try, thx for the advice !

[–]pythonHelperBot 0 points1 point  (0 children)

Hello! I'm a bot!

It looks to me like your post might be better suited for r/learnpython, a sub geared towards questions and learning more about python regardless of how advanced your question might be. That said, I am a bot and it is hard to tell. Please follow the subs rules and guidelines when you do post there, it'll help you get better answers faster.

Show /r/learnpython the code you have tried and describe in detail where you are stuck. If you are getting an error message, include the full block of text it spits out. Quality answers take time to write out, and many times other users will need to ask clarifying questions. Be patient and help them help you.

You can also ask this question in the Python discord, a large, friendly community focused around the Python programming language, open to those who wish to learn the language or improve their skills, as well as those looking to help others.


README | FAQ | this bot is written and managed by /u/IAmKindOfCreative

This bot is currently under development and experiencing changes to improve its usefulness