mograte to BeautifulSoup4, better links generation in text version