最近采集一个站点,使用了markdown,返回数据json格式,直接入库肯定乱码..
python有个markdown模块,可以将就的转换下代码为html,起码美观些。
import markdown
import requests
url="http://******.**"
html=requests.get(url).json()
result=markdown.markdown(html["content"])
print result
本文标题: | markdown格式转html |
本文链接: (转载请附上本文链接) | https://vulsee.com/archives/vulsee_2021/0118_13531.html |