Skip to content

Instantly share code, notes, and snippets.

@imty42
Created December 31, 2017 09:11
Show Gist options
  • Save imty42/5ce505072ec37ae931d416b074957eeb to your computer and use it in GitHub Desktop.
Save imty42/5ce505072ec37ae931d416b074957eeb to your computer and use it in GitHub Desktop.
如何抓取一个公众号转成 RSS

如何抓取一个公众号转成 RSS

I. 找到对应的账号,http://www.gzhshoulu.wang/

比如,http://www.gzhshoulu.wang/account_ArchNotes.html

II. 生成含有标题和连接的 rss feed,https://feed43.com

2.1 RULES

# content
<title>{%}</title>{*}<div class='list_main'>{%}<div class="pages">
# item
<div class="infomation">{*}<a href="{%}" target="_blank">{%}</a>{*}<p class='pubtimes'>{%}</p>{*}</div>

# title
{%2} | {%3}
# link
{%1}

2.2 RENAME

取一个可读性好的名字,比如:https://feed43.com/arch_notes-weixin.xml

记住可编辑的地址备用,https://feed43.com/feed.html?name=arch_notes-weixin

III. 生成带摘要的文章列表 http://fivefilters.org/content-only/

http://fivefilters.org/content-only/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment