Skip to content

Instantly share code, notes, and snippets.

@pranjalAI
Created November 28, 2020 18:04
Show Gist options
  • Save pranjalAI/9293fe36a6c1728de0058ca5c71682ad to your computer and use it in GitHub Desktop.
Save pranjalAI/9293fe36a6c1728de0058ca5c71682ad to your computer and use it in GitHub Desktop.
text=[]
for paragraph in para:
text.append(paragraph.text)
for header1 in head1:
text.append(header1.text)
for header2 in head2:
text.append(header2.text)
for header3 in head3:
text.append(header3.text)
content=" ".join(text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment