def format_text(feed):
"""
Converts a html text to markdown and adds a bottom line to it
:param feed: Feed to format
:return: formatted text
"""
text = html2text.html2text(feed.desc)
link = feed.link
text = '[Link zum PietSmiet.de-Artikel](' + link + ')\n\n' + \
text + '\n\n--- \n[Code](https://github.com/PietsmietApp/pietsmiet_xposter) | ' + \
'*Auch als Push-Benachrichtigung in der [Community App für Pietsmiet](' \
'https://play.google.com/store/apps/details?id=de.pscom.pietsmiet&referrer=utm_source%3Dreddit' \
'%26utm_medium%3Duploadplan)* '
return text
评论列表
文章目录