Parsing HTML page using beautifulsoup,print(''.join([str(t).strip() for t in x.findAll(text=True)]))