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