我用python-redmine,並希望得到wiki頁面的文字,但得到的錯誤 - 屬性不存在(但文本存在),這裏是我的代碼:Python的管理平臺:維基頁面文字
from redmine import Redmine
redmine = Redmine('http://redmine.example.com', username='user', password='1234')
projects = redmine.project.all()
for project in projects:
print('Project: '+project.name)
try:
for page in project.wiki_pages:
try:
print('Title: '+page.title)
except:
print('Title: none')
try:
print('Content: '+page.text)
except:
print('Content: none')
print('\n===========================\n')
except:
print('None')
我怎麼能從維基頁面獲取文本?幫我啄!由PiP