Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add Lofter话题/标签文章分类 & 视频 #8054

Merged
merged 4 commits into from
Nov 27, 2021

Conversation

nczitzk
Copy link
Contributor

@nczitzk nczitzk commented Aug 20, 2021

该 PR 相关 Issue / Involved issue

Close #7996

完整路由地址 / Example for the proposed route(s)

/lofter/tag/摄影/date

新RSS检查列表 / New RSS Script Checklist

  • New Route
  • Documentation
    • CN
    • EN
  • 全文获取 fulltext
    • Use Cache
  • 反爬/频率限制 anti-bot or rate limit?
    • 如果有, 是否有对应的措施? If yes, do your code reflect this sign?
  • 日期和时间 date and time
    • 可以解析 Parsed
    • 时区调整 Correct TimeZone
  • 添加了新的包 New package added
  • Puppeteer

说明 / Note

@vercel
Copy link

vercel bot commented Aug 20, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/diy/rsshub/6MdBFzFEDapwdAV2S7z7vcBBZAXi
✅ Preview: https://rsshub-git-fork-nczitzk-feature-lofter-tag-diy.vercel.app

@github-actions
Copy link
Contributor

Successfully generated as following:

https://rsshub-etlflktgh-diy.vercel.app/lofter/tag/摄影/date - Success
    <?xml version="1.0" encoding="UTF-8"?>
<rss  xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"

>
    <channel>
        <title><![CDATA[摄影 - 日榜|LOFTER]]></title>
        <link>http://www.lofter.com/tag/摄影/date</link>
        <atom:link href="https://rsshub-etlflktgh-diy.vercel.app/lofter/tag/%E6%91%84%E5%BD%B1/date" rel="self" type="application/rss+xml" />
        <description><![CDATA[摄影 - 日榜|LOFTER - Made with love by RSSHub(https://github.com/DIYgod/RSSHub)]]></description>
        <generator>RSSHub</generator>
        <webMaster>[email protected] (DIYgod)</webMaster>
        
        
        
        <language>zh-cn</language>
        
        <lastBuildDate>Fri, 20 Aug 2021 16:21:52 GMT</lastBuildDate>
        <ttl>5</ttl>
        
        <item>
            <title><![CDATA[Nefertari:一定要爱着点什么,恰似草木对光阴的钟情。——汪曾祺]]></title>
            <description><![CDATA[<img src="https://imglf6.lf127.net/img/67dc3c998cf43f11/c3VETURWeDVnSWxqcTZNNEhyU3lraHhjbjJqUHdKVFZJSnB3TnpkMjRKQT0.jpg?imageView&thumbnail=1680x0&quality=96&stripmeta=0&type=jpg" referrerpolicy="no-referrer"><img src="https://imglf4.lf127.net/img/a1335f0602ad20c3/c3VETURWeDVnSWxqcTZNNEhyU3lraFdFSmhEWUlGREF3VDRJN0w1aUJ3az0.jpg?imageView&thumbnail=1680x0&quality=96&stripmeta=0&type=jpg" referrerpolicy="no-referrer"><img src="https://imglf6.lf127.net/img/d0bc8f428af19eab/c3VETURWeDVnSWxqcTZNNEhyU3lra2swb1JoaW5JUG83Uk05aUZ1WkMrYz0.jpg?imageView&thumbnail=1680x0&quality=96&stripmeta=0&type=jpg" referrerpolicy="no-referrer"><p>一定要爱着点什么,恰似草木对光阴的钟情。——汪曾祺</p>]]></description>
            <pubDate>Mon, 06 Dec 1632 07:32:07 GMT</pubDate>
            <guid isPermaLink="false">https://bielaikanwolexiexieni.lofter.com/post/30b0a114_1ccd600e6</guid>
            <link>https://bielaikanwolexiexieni.lofter.com/post/30b0a114_1ccd600e6</link>
            
            
            
            <author><![CDATA[Nefertari]]></author>
            

@github-actions github-actions bot added the Auto: Route Test Complete Auto route test has finished on given PR label Aug 20, 2021
@github-actions
Copy link
Contributor

Successfully generated as following:

https://rsshub-a5i8pvadw-diy.vercel.app/lofter/tag/摄影/date - Success
    <?xml version="1.0" encoding="UTF-8"?>
<rss  xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"

>
    <channel>
        <title><![CDATA[摄影 - 日榜|LOFTER]]></title>
        <link>http://www.lofter.com/tag/摄影/date</link>
        <atom:link href="https://rsshub-a5i8pvadw-diy.vercel.app/lofter/tag/%E6%91%84%E5%BD%B1/date" rel="self" type="application/rss+xml" />
        <description><![CDATA[摄影 - 日榜|LOFTER - Made with love by RSSHub(https://github.com/DIYgod/RSSHub)]]></description>
        <generator>RSSHub</generator>
        <webMaster>[email protected] (DIYgod)</webMaster>
        
        
        
        <language>zh-cn</language>
        
        <lastBuildDate>Sat, 21 Aug 2021 01:46:13 GMT</lastBuildDate>
        <ttl>5</ttl>
        
        <item>
            <title><![CDATA[梁怃虞 / 拾辉社:夜吟应觉月光寒]]></title>
            <description><![CDATA[<img src="https://imglf4.lf127.net/img/f729790f5f364342/SWNuRVRTNVNvOTJTYVNsRVVuM3FjWE1CUllSaGdmVWlOVWd1TUJyQjVETT0.jpg?imageView&thumbnail=1680x0&quality=96&stripmeta=0&type=jpg" referrerpolicy="no-referrer"><p>夜吟应觉月光寒</p>]]></description>
            <pubDate>Fri, 20 Aug 2021 14:22:17 GMT</pubDate>
            <guid isPermaLink="false">https://liberight.lofter.com/post/1f365f75_1ccd65103</guid>
            <link>https://liberight.lofter.com/post/1f365f75_1ccd65103</link>
            
            
            
            <author><![CDATA[梁怃虞 / 拾辉社]]></author>
            

Comment on lines 40 to 42
item.find('.opta .opti').each(function () {
category.push($(this).text());
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

用 map

Comment on lines 32 to 38
item.find('.js-video').each(function () {
videos += `<video src="${$(this).attr('data-videourl')}" poster="${$(this).attr('data-videoimg')}" controls="controls"></video>`;
});

item.find('.js-digest').remove();
item.find('.imgc img').each(function () {
images += `<img src="${$(this).attr('data-origin') || $(this).attr('src')}"/>`;
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reduce

@github-actions
Copy link
Contributor

Successfully generated as following:

https://rsshub-lsy37v1re-diy.vercel.app/lofter/tag/摄影/date - Success
    <?xml version="1.0" encoding="UTF-8"?>
<rss  xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"

>
    <channel>
        <title><![CDATA[摄影 - 日榜|LOFTER]]></title>
        <link>http://www.lofter.com/tag/摄影/date</link>
        <atom:link href="https://rsshub-lsy37v1re-diy.vercel.app/lofter/tag/%E6%91%84%E5%BD%B1/date" rel="self" type="application/rss+xml" />
        <description><![CDATA[摄影 - 日榜|LOFTER - Made with love by RSSHub(https://github.com/DIYgod/RSSHub)]]></description>
        <generator>RSSHub</generator>
        <webMaster>[email protected] (DIYgod)</webMaster>
        
        
        
        <language>zh-cn</language>
        
        <lastBuildDate>Wed, 25 Aug 2021 03:43:11 GMT</lastBuildDate>
        <ttl>5</ttl>
        
        <item>
            <title><![CDATA[沈抱抱:“ 短暂的快乐如花开花谢 ” 
 
 
 自摄底图*3 
 红蓝可用,感谢喜欢 
 禁白嫖二传二改,网商须私]]></title>
            <description><![CDATA[<img src="https://imglf6.lf127.net/img/7e947b72ad41463e/enZpZEZBbnFWUHljaHI0bkF4REdnNDN4UWgvUGo1eGZyY3lHSkNFN0ZYdz0.jpg?imageView&thumbnail=1680x0&quality=96&stripmeta=0&type=jpg" referrerpolicy="no-referrer"><img src="https://imglf4.lf127.net/img/78c92a10b95c2c80/enZpZEZBbnFWUHljaHI0bkF4REdnd1JsdDBFYjJlSDl0eFVrU3NMMXloYz0.jpg?imageView&thumbnail=1680x0&quality=96&stripmeta=0&type=jpg" referrerpolicy="no-referrer"><img src="https://imglf3.lf127.net/img/cf75f55578418c64/enZpZEZBbnFWUHljaHI0bkF4REdnNVora0xTL3RrY0N3NTNlTU9DQ29IMD0.jpg?imageView&thumbnail=1680x0&quality=96&stripmeta=0&type=jpg" referrerpolicy="no-referrer"><img src="https://imglf4.lf127.net/img/8b7f303c557543a7/enZpZEZBbnFWUHljaHI0bkF4REdnKzZmeHZxdHo3aUpIdUZob2Q5OVVGTT0.jpg?imageView&thumbnail=1680x0&quality=96&stripmeta=0&type=jpg" referrerpolicy="no-referrer"><p>“ <strong>短暂的快乐如花开花谢 </strong>”</p> 
<p><br></p> 
<ul> 
 <li><p>自摄底图*3</p></li> 

@DIYgod DIYgod merged commit 12ecf43 into DIYgod:master Nov 27, 2021
auto-bot-ty added a commit to auto-bot-ty/RSSHub that referenced this pull request Nov 27, 2021
* docs: update sponsor

* feat: add hotukdeals

* feat: hotukdeals radar

* feat: add PS5 stock UK - The Independent

* fix(route): allow preLoginFlow of instagram to fail (DIYgod#8340)

Based on discussion in instragram-private-api repo, we do not need
this function for login.

See:
dilame/instagram-private-api#1411
dilame/instagram-private-api#1417

* style: auto format

* feat: pixiv PIXIV_IMG_PROXY

* fix: douban guid

* feat(route): add Research Gate Publications (DIYgod#7544)

* feat(route): add QuestMobile行业研究报告 (DIYgod#7552)

* chore: remove no-return-await eslint rule

* feat(route): add RSS3 Blog (DIYgod#7566)

Co-authored-by: DIYgod <[email protected]>

* style: auto format

* feat(route): add Odaily星球日报活动 (DIYgod#7666)

* feat: remove toutiao

* chore: format

* feat(route): add fashion network news (DIYgod#7602)

Co-authored-by: DIYgod <[email protected]>

* feat(route): add dbaplus社群活动 (DIYgod#7584)

Co-authored-by: DIYgod <[email protected]>

* feat(route): add 德阳考试中心 (DIYgod#7901)

* feat(route): add 央视网栏目 (DIYgod#7937)

Co-authored-by: DIYgod <[email protected]>

* style: auto format

* fix: infzm timezone (DIYgod#7695)

* fix: undefined error when no magnet & torrent (DIYgod#7745)

* feat(route): add World Health Organization News (DIYgod#8022)

Co-authored-by: DIYgod <[email protected]>

* fix: exclude datanews to prevent `pubDate` error (`/caixin/latest`) (DIYgod#8068)

* feat(route): add World Health Organization Speeches (DIYgod#8048)

Co-authored-by: DIYgod <[email protected]>

* Fix AP News article's title (DIYgod#8086)

* feat(route): add Now 熱門新聞 (DIYgod#8093)

Co-authored-by: DIYgod <[email protected]>

* feat(route): add Uwants (DIYgod#8094)

Co-authored-by: DIYgod <[email protected]>

* fix: lazyloadRouteHandler

* fix: add Lofter话题/标签文章分类 & 视频 (DIYgod#8054)

* feat(route): add yunnan normal university (DIYgod#8097)

* feat(route): add 香港討論區 (DIYgod#8101)

Co-authored-by: DIYgod <[email protected]>

* feat(route): add 香港高登 (DIYgod#8109)

Co-authored-by: DIYgod <[email protected]>

* feat(route): add 华南理工大学教务处学院通知 (DIYgod#8110)

* fix(route): incorrect source links in yuzu emulator (DIYgod#8111)

* fix(route): migrate initium routes to new timezone (DIYgod#8124)

* feat(route): add yahoo japan covid19 news collection 日本疫情消息汇总 (DIYgod#8099)

* feat(route): add Asian to lick (DIYgod#8156)

Co-authored-by: SettingDust <[email protected]>
Co-authored-by: DIYgod <[email protected]>

* feat(route): add "micmicidol" (DIYgod#8070)

Co-authored-by: SettingDust <[email protected]>
Co-authored-by: DIYgod <[email protected]>

* feat(route):add 拷贝漫画 (DIYgod#7896)

Co-authored-by: SettingDust <[email protected]>
Co-authored-by: DIYgod <[email protected]>

* feat(route): add SBS中文 (DIYgod#8149)

Co-authored-by: DIYgod <[email protected]>

* feat(route): add Netflix Newsroom (DIYgod#8135)

Co-authored-by: SettingDust <[email protected]>
Co-authored-by: NeverBehave <[email protected]>
Co-authored-by: DIYgod <[email protected]>

* fix(route): 修正北京教育考试院内容提取错误 (DIYgod#8209)

* fix(route): dekudeals error due to ad (DIYgod#8214)

* feat(route): add 旺球体育直播间 (DIYgod#8276)

Co-authored-by: DIYgod <[email protected]>

* fix(route): 深圳证券交易所最新规则 (DIYgod#8284)

* feat(route): add 人民网领导留言板 (DIYgod#8285)

* feat(router): timednews 时刻新闻 (DIYgod#8279)

Co-authored-by: Tony <[email protected]>

* feat(router): ccac 澳门廉政公署 (DIYgod#8273)

Co-authored-by: Tony <[email protected]>

* add 安全文摘 (DIYgod#8294)

Co-authored-by: testkaili <[email protected]>
Co-authored-by: kaiili <[email protected]>

* feat(router): cebbank 光大银行 (DIYgod#8293)

* feat(route): add NGOCN (DIYgod#8301)

Co-authored-by: DIYgod <[email protected]>

* chore: format

* feat(route): add IT之家专题 (DIYgod#8312)

* feat(route)(v2): add 旅法师营地首页 (DIYgod#8350)

* feat(route): add 辛華社 (DIYgod#8357)

* feat(route): add Literotica Category (DIYgod#8415)

* feat(route): add Literotica News Stories (DIYgod#8410)

Co-authored-by: DIYgod <[email protected]>

* misc: add NOROUTE instruction back to template (DIYgod#8379)

Co-authored-by: Sukka <[email protected]>

* feat(route): jandan use the origin gif instead the thumbs (DIYgod#8406)

* feat(route): add HKJunkCall資訊中心 (DIYgod#8405)

* fix(route): fix furstar pic href (DIYgod#8404)

* feat(route): add ScienceDirect Journal (DIYgod#8399)

* feat(route): add Harvard Business Review Topic (DIYgod#8395)

* fix(route)(hket): migrate to v2 (DIYgod#8132)

* chore: format

Co-authored-by: DIYgod <[email protected]>
Co-authored-by: Shizun Ge <[email protected]>
Co-authored-by: GitHub Action <[email protected]>
Co-authored-by: Ethan Shen <[email protected]>
Co-authored-by: DIYgod <[email protected]>
Co-authored-by: zytomorrow <[email protected]>
Co-authored-by: Sean Chao <[email protected]>
Co-authored-by: junfengP <[email protected]>
Co-authored-by: Toby Tso <[email protected]>
Co-authored-by: ninboy <[email protected]>
Co-authored-by: SettingDust <[email protected]>
Co-authored-by: Rongrong <[email protected]>
Co-authored-by: coxde <[email protected]>
Co-authored-by: sgqy <[email protected]>
Co-authored-by: KotoriK <[email protected]>
Co-authored-by: btdwv <[email protected]>
Co-authored-by: NeverBehave <[email protected]>
Co-authored-by: erriy <[email protected]>
Co-authored-by: Kevin Carter <[email protected]>
Co-authored-by: linbuxiao <[email protected]>
Co-authored-by: Tony <[email protected]>
Co-authored-by: kaiili <[email protected]>
Co-authored-by: testkaili <[email protected]>
Co-authored-by: kaiili <[email protected]>
Co-authored-by: auto-bot-ty <[email protected]>
Co-authored-by: Yishuai Li <[email protected]>
Co-authored-by: Sukka <[email protected]>
Co-authored-by: Oddcc <[email protected]>
Co-authored-by: tuzi3040 <[email protected]>
@nczitzk nczitzk deleted the feature/lofter-tag branch November 27, 2021 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto: Route Test Complete Auto route test has finished on given PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

希望lofter路由的抓取内容包含tag
3 participants