def mcr(request,pjname, pagename): fsrc = requests.get( "https://scrapbox.io/api/pages/{}/{}/text".format(pjname, pagename) ).text.split("\n") feeds = fsrc[1:-1] body="" body="" body+="
" for f in feeds: g=feedparser.parse(f) body+="
" body+="

{}

".format(g.feed.title) for a in g.entries: body+="
" body+="

{}

".format(a.title) body+="

{}

".format(a.summary) body+="
" body+="
" body+="
" body+="" return HttpResponse(body)