75
75
rand1 = random.randint(100000000,1000000000)
76
76
rand2 = random.randint(100000000,1000000000)
77
77
rand = '%s%s' % (rand1,rand2)
79
79
soup = BeautifulSoup(desc,convertEntities=BeautifulStoneSoup.HTML_ENTITIES,smartQuotesTo=None)
80
80
[img.extract() for img in soup.findAll('img')]
81
81
[br.replaceWith('\n') for br in soup.findAll('br')]