Python finding bolded text in RTF
Question: I'm dealing with a gigantic rich text file where every entry starts with a
bold title. It'd be really helpful to import the rich text file into Python
and have it split up lines wherever it sees bold text. However, I can't find a
way to import non plaintext, and have resorted to looking for other methods of
finding where the bold text starts.

Is there a way to get Python to read where bold text is?


Answer: No, not easily. Certainly not within the scope of a StackOverflow answer.

The problem is that RTF is a proprietary format, with special "syntax" that
describes the format.

There are libraries that make attempts to read it, which are described here:
[Is there a Python module for converting RTF to plain
text?](http://stackoverflow.com/questions/1337446/is-there-a-python-module-
for-converting-rtf-to-plain-text)

However, even if one of those would read the text for you, it would be
unlikely to be telling you the format. Afterall, how would it tell you?

Your best bet may be finding an RTF to HTML converter (at least one is
referred to in the question that I pointed to), then using BeautifulSoup to
find the bolded HTML elements.

