Skip to content

Instantly share code, notes, and snippets.

@douo
douo / README.org
Last active June 11, 2023 12:22
Inoreader to Miniflux/v2

Backup

Preferences -> API access

复制 App ID 和 App Key 填入 backup.py 的 client_idclient_secret

rye pin 3.11
rye add requests
rye sync
@lcomplete
lcomplete / rss_link_hunt.py
Created May 9, 2022 12:32
通过 OPML xml 文件解析 RSS feed,从 feed 中获取被推荐最多的链接
@spencerwooo
spencerwooo / ttrss-theme.css
Last active March 29, 2024 02:12
Tiny Tiny RSS Pink-Feedly Theme
@import url(https://fonts.googleapis.com/css?family=Miriam+Libre:400,700&display=swap);
a.title {
font-family: 'Miriam Libre', Noto Sans CJK SC, Microsoft YaHei, sans-serif, Apple Color Emoji, Segoe UI Emoji!important
}
#content-wrap#content-wrap .content,
#content-wrap#content-wrap .content-inner,
#feedTree,
body {
font-family: Avenir Next, -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, PingFang SC, Noto Sans CJK SC, Microsoft YaHei, sans-serif, Apple Color Emoji, Segoe UI Emoji!important
@thefranke
thefranke / RSS.md
Last active April 16, 2024 09:03
A list of RSS endpoints, readers and resources

The RSS Endpoint List

Please refer to this blogpost to get an overview.

Replace *-INSTANCE with one of the public instances listed in the scrapers section. Replace CAPITALIZED words with their corresponding identifiers on the website.

Social Media

Twitter

@erkattak
erkattak / gist:071ab8af1fc64013d955
Last active March 17, 2024 09:37 — forked from svperfecta/gist:141e7c1ae1e610c9cdcd
Example Event RSS Feed

Feed will support xcal (xml representation of ical). This allows us to handle event schedules (PBR) in a nice way

Feed will also support the media rss spec as part of our RSS parsing. This allows a nice way to provide links to assets (images, video, etc) within the rss feed in a standardized way.

Both of these require the tag to add additional XML namespaces (xmlns:media, xmlns:xcal).

These are used within an RSS feed like so:

<?xml version="1.0"?>
<rss version="2.0"
@JohnWong
JohnWong / Dev-RSS
Created December 5, 2015 14:18
我的RSS订阅 OMPL格式
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>晓哲 subscriptions in feedly Cloud</title>
</head>
<body>
<outline text="前端" title="前端">
<outline type="rss" text="掌心" title="掌心" xmlUrl="http://www.zhanxin.info/feed.xml" htmlUrl="http://www.zhanxin.info/feed.xml"/>
<outline type="rss" text="Blog of Wenli Zhang" title="Blog of Wenli Zhang" xmlUrl="http://zhangwenli.com/blog/feed.xml" htmlUrl="http://zhangwenli.com/blog"/>
@nzjrs
nzjrs / datedifference.py
Created October 11, 2009 11:38
Humanize date differences
#!/usr/bin/env python
# This function prints the difference between two python datetime objects
# in a more human readable form
#
# Adapted from: http://www.chimeric.de/blog/2008/0711_smart_dates_in_python
def humanize_date_difference(now, otherdate=None, offset=None):
if otherdate:
dt = otherdate - now
offset = dt.seconds + (dt.days * 60*60*24)