This commit is contained in:
2023-12-01 22:30:58 +08:00
parent cb06de0cac
commit 11d2d75577
4 changed files with 7 additions and 8 deletions

View File

@@ -27,7 +27,6 @@ def convert_wordpress_xml_to_markdown(xml_file='./a.xml', convert_content=1, rep
tree = ET.parse(xml_file)
root = tree.getroot()
for item in root.findall('.//item'):
print(item)
title = item.find('title').text
content = item.find('.//content:encoded', namespaces={'content': 'http://purl.org/rss/1.0/modules/content/'}).text
if convert_content == 1:
@@ -1108,7 +1107,7 @@ def notification_of_upgrade(timeout=2):
current_version = get_current_version('guan')
if latest_version != None and current_version != None:
if latest_version != current_version:
print('提示:您当前使用的版本是 guan-'+current_version+',目前已经有最新版本 guan-'+latest_version+'。您可以通过以下命令对软件包进行升级pip install --upgrade guan -i https://pypi.python.org/simple 或 pip install --upgrade guan')
print('升级提示:您当前使用的版本是 guan-'+current_version+',目前已经有最新版本 guan-'+latest_version+'。您可以通过以下命令对软件包进行升级pip install --upgrade guan -i https://pypi.python.org/simple 或 pip install --upgrade guan')
except:
pass
import random