<gh_stars>0
from bs4 import BeautifulSoup
from bs4 import SoupStrainer
import sys

def get_paragraphs(post_content):
	paragraphs = list()
	
	only_p_tags = SoupStrainer(["p", "h1", "h2", "h3", "h4", "h5", "h6", "li", ])
	soup = BeautifulSoup(post_content, "lxml", parse_only=only_p_tags)


	for paragraph in soup:
		#replace all link text with LINK
		# for a in paragraph.findAll('a'):
  		# 	a.string = "LINK"


		#replace all code tags with CW
		# for a in paragraph.findAll('code'):
  		# 	a.string = "CW"

		paragraphs.append(paragraph.get_text())

	return paragraphs


from bs4 import BeautifulSoup
from bs4 import SoupStrainer
import sys

def get_paragraphs(post_content):
	paragraphs = list()
	
	only_p_tags = SoupStrainer(["p", "h1", "h2", "h3", "h4", "h5", "h6", "li", ])
	soup = BeautifulSoup(post_content, "lxml", parse_only=only_p_tags)


	for paragraph in soup:
		#replace all link text with LINK
		# for a in paragraph.findAll('a'):
  		# 	a.string = "LINK"


		#replace all code tags with CW
		# for a in paragraph.findAll('code'):
  		# 	a.string = "CW"

		paragraphs.append(paragraph.get_text())

	return paragraphs
#replace all link text with LINK # for a in paragraph.findAll('a'): # 	a.string = "LINK" #replace all code tags with CW # for a in paragraph.findAll('code'): # 	a.string = "CW"