#🔒 Is there a particular way of extract a particular paragraph from a pdf?

4 messages · Page 1 of 1 (latest)

tranquil star
#

Hello guys, I know how to extract data from a pdf but now I need to do something more challenging. What I need to do is some PDF scrapping. Base on some keywords hardcoded into my code, I will need to look for the keyword in that article then extract the paragraph which contains the keyword, as well as where its title and where it is found if possible, something like that:

The problem is, how do I know where the paragraph of the keyword starts and where it ends and how do I extract the title please... My idea was to use punctuation marks like full stops, exclamation marks etc as delimiters but it doesn't seem to be working/efficient.... any idea would be highly appreciated

cedar gateBOT
#

@tranquil star

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

cedar gateBOT
#

@tranquil star

Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.