0x7b1 / logseq-plugin-automatic-url-title

MIT License
50 stars 16 forks source link

Cannot get title from wechat blogs #5

Open jfding opened 1 year ago

jfding commented 1 year ago

Wechat blogs are quite popular among wechat users, but the pages in this media platform have no tags, instead, they are using:</p> <pre><code><h1 class="rich_media_title " id="activity-name"> XXXYYY </h1> </code></pre> <p>to store the title.</p> <p>e.g.: <a rel="noreferrer nofollow" target="_blank" href="https://mp.weixin.qq.com/s?__biz=MzAwODI4MjEwNQ==&mid=2454590588&idx=1&sn=1d3984701bf1d5a703d7fcc65ea6fbbe">https://mp.weixin.qq.com/s?__biz=MzAwODI4MjEwNQ==&mid=2454590588&idx=1&sn=1d3984701bf1d5a703d7fcc65ea6fbbe</a> <a rel="noreferrer nofollow" target="_blank" href="https://mp.weixin.qq.com/s/a5_UUZ0vLEoKUmq3UtMv8w">https://mp.weixin.qq.com/s/a5_UUZ0vLEoKUmq3UtMv8w</a> <a rel="noreferrer nofollow" target="_blank" href="https://mp.weixin.qq.com/s/3ZGoRsCWKn0GnB4hxoTSpw">https://mp.weixin.qq.com/s/3ZGoRsCWKn0GnB4hxoTSpw</a></p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/0x7b1"><img src="https://avatars.githubusercontent.com/u/2180529?v=4" />0x7b1</a> commented <strong> 1 year ago</strong> </div> <div class="markdown-body"> <p>Hey! thanks for the suggestion. Indeed, it's probably worth to fetch the link title based on custom urls like the one you mention. I found other sites that also don't work with a simple <title> lookup. </p> </div> </div> <div class="page-bar-simple"> </div> <div class="footer"> <ul class="body"> <li>© <script> document.write(new Date().getFullYear()) </script> Githubissues.</li> <li>Githubissues is a development platform for aggregating issues.</li> </ul> </div> <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script> <script src="/githubissues/assets/js.js"></script> <script src="/githubissues/assets/markdown.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/highlight.min.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/go.min.js"></script> <script> hljs.highlightAll(); </script> </body> </html>