FeedDeck
https://idy.herokuapp.com/mcr/Scrapboxプロジェクト名/ページタイトル
改行区切りでRSS Feed URLをページに書いておく
サンプル
https://idy.vercel.app/mcr/villagepump/FeedDeck-sample
サーバーサイドでfetchしてからhtml生成してるので遅い
クライアントサイドでペッとできるようになりたいdnin.icon
https://idy.vercel.app/mcr/villagepump/scrapbox-rss
scrapbox-rss
複数のStreamを同時に見れる感じ
NitDeckもあるよdnin.icon
読んでるページのRSSフィードのURLをScrapboxに追記すると組み合わせると最高
age 気になるので後で見るmiyamonz.icon
同じく気になるので後で試してみるmeganii.icon
code:django_view.py
def mcr(request,pjname, pagename):
fsrc = requests.get(
"https://scrapbox.io/api/pages/{}/{}/text".format(pjname, pagename)
).text.split("\n")
feeds = fsrc1:-1
body=""
body="<style>img {width: 100%;height: auto;}html{height:100%}body{height:100%;margin:0}.source{display:flex;height:100%}.source h2{position:sticky;top:0;background-color:#ffffffcc}.source div{width:200px;min-width:200px;padding:10px 20px 0 7px;overflow:hidden scroll}div.entry{height:fit-content}::-webkit-scrollbar{width:7px}::-webkit-scrollbar-track{border-radius:10px}::-webkit-scrollbar-thumb{background-color:rgba(0,120,20,.1)}</style>"
body+="<div class='source'>"
for f in feeds:
g=feedparser.parse(f)
body+="<div>"
body+="<h2 style='font-family:Sans-serif'>{}</h2>".format(g.feed.title)
for a in g.entries:
body+="<div class='entry'>"
body+="<h4>{}</h4>".format(a.title)
body+="<p>{}</p>".format(a.summary)
body+="</div>"
body+="</div>"
body+="</div>"
body+="</div>"
return HttpResponse(body)