使用 Yahoo Pipes 使推文链接到它们包含的 URL 而不是 Twitter
我想知道如何使用 Yahoo Pipes 获取任何包含 url 的推文,以便在单击时链接到该 url,而不是链接到 Twitter。
I'm wondering how you can use Yahoo Pipes to get any tweets than contain a url to link to that url when clicked, instead of linking to Twitter.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我做了一些假设。
流程最终为:
item.description
匹配正则表达式https?://
item.描述
复制为link
item.link
中替换^.*?(https?:// [\w:#@%/;$()~?+-=\.&]+).*$
和$1
(s)如果您想查看所有推文,那么最简单的事情就是在顶部拆分 feed,过滤带 URL 和不带 URL 的 feed,只处理 URL 的 feed。最后,您可以在输出之前重新合并提要。
如果您想要更多 url 类型,请在步骤 2 和 4 中将
https?://
更改为(https?|ftp|etc)://
我制作了一个示例 < a href="http://pipes.yahoo.com/pipes/pipe.info?_id=e791303aab6722d25e6fbbef0c9d7c27" rel="nofollow noreferrer">此处。
I made some assumptions.
The flow ends up:
item.description
Matches regexhttps?://
item.description
Copy Aslink
item.link
replace^.*?(https?://[\w:#@%/;$()~?+-=\.&]+).*$
with$1
(s)If you want to see all tweets, then the simplest thing is to split the feed at the top and filter the ones with and without URLs and only process the URL ones. Finally you can remerge the feeds before outputting.
If you want more url types, change the
https?://
to(https?|ftp|etc)://
in step 2 and 4I made a sample here.