mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-03-03 17:05:04 +08:00
新增url解析逻辑,解决itchat中分享卡片无法解析的问题
This commit is contained in:
@@ -2,6 +2,7 @@ import requests
|
||||
from config import conf
|
||||
from common.log import logger
|
||||
import os
|
||||
import html
|
||||
|
||||
|
||||
class LinkSummary:
|
||||
@@ -18,6 +19,7 @@ class LinkSummary:
|
||||
return self._parse_summary_res(res)
|
||||
|
||||
def summary_url(self, url: str):
|
||||
url = html.unescape(url)
|
||||
body = {
|
||||
"url": url
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user