如何下载美味的所有标签

发布于 2024-08-07 05:28:27 字数 128 浏览 3 评论 0原文

如何从delicious下载所有标签,如以下所示的所有标签: http://delicious.com/tag

how to download all the tags from delicious, like all the tags shown in:
http://delicious.com/tag

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

你爱我像她 2024-08-14 05:28:27

不可能获取所有标签,您可以获取您的用户名的所有标签(用您的用户名和密码替换占位符):

curl https://{username}:{password}@api.del.icio.us/v1/tags/get

这会返回一些 XML(对我来说)看起来像这样:

<?xml version="1.0" encoding="UTF-8"?>    
<tags>
  <tag count="42" tag=".Net"/>
  <tag count="9" tag="AI"/>
  <tag count="1" tag="ASP"/>
  <tag count="64" tag="Accessibility"/>
  <tag count="15" tag="Admin"/>
  <tag count="3" tag="Agile"/>
  <tag count="57" tag="Ajax"/>
  <tag count="12" tag="Amiga"/>
  ...
</tags>

或者您可以获取特定 URL 的推荐或建议标签列表:

curl https://{username}:{password}@api.del.icio.us/v1/posts/suggest?url=http://stackoverflow.com/

这将返回带有两种不同类型标签的 XML,推荐的标签加上所有用户流行的标签:

<?xml version="1.0" encoding="UTF-8"?>
<suggest>
  <recommended>Reference</recommended>
  <recommended>Development</recommended>
  <recommended>Software</recommended>
  <recommended>Tips</recommended>
  <recommended>Community</recommended>
  <recommended>Technology</recommended>
  <recommended>HowTo</recommended>
  <recommended>Forum</recommended>
  <recommended>Web2.0</recommended>
  <recommended>Blog</recommended>
  <recommended>Learning</recommended>
  <recommended>FAQ</recommended>
  <popular>programming</popular>
  <popular>reference</popular>
  <popular>development</popular>
  <popular>software</popular>
  <popular>tips</popular>
</suggest>

有一篇 webmonkey 文章涵盖了 使用 PHP 的 Delicious API

It's not possible to get all tags, you can get all tags for your username (replace the placeholders with your username and password):

curl https://{username}:{password}@api.del.icio.us/v1/tags/get

This returns some XML which (for me) looks something like this:

<?xml version="1.0" encoding="UTF-8"?>    
<tags>
  <tag count="42" tag=".Net"/>
  <tag count="9" tag="AI"/>
  <tag count="1" tag="ASP"/>
  <tag count="64" tag="Accessibility"/>
  <tag count="15" tag="Admin"/>
  <tag count="3" tag="Agile"/>
  <tag count="57" tag="Ajax"/>
  <tag count="12" tag="Amiga"/>
  ...
</tags>

Or you can get a list of recommended or suggested tags for a particular URL:

curl https://{username}:{password}@api.del.icio.us/v1/posts/suggest?url=http://stackoverflow.com/

This returns XML with two different types of tag, your tags which are recommended plus tags from all users which are popular:

<?xml version="1.0" encoding="UTF-8"?>
<suggest>
  <recommended>Reference</recommended>
  <recommended>Development</recommended>
  <recommended>Software</recommended>
  <recommended>Tips</recommended>
  <recommended>Community</recommended>
  <recommended>Technology</recommended>
  <recommended>HowTo</recommended>
  <recommended>Forum</recommended>
  <recommended>Web2.0</recommended>
  <recommended>Blog</recommended>
  <recommended>Learning</recommended>
  <recommended>FAQ</recommended>
  <popular>programming</popular>
  <popular>reference</popular>
  <popular>development</popular>
  <popular>software</popular>
  <popular>tips</popular>
</suggest>

There's a webmonkey article which covers using the Delicious API from PHP.

时光清浅 2024-08-14 05:28:27

如果您指的是自己的标签,那么最简单的解决方案是使用导出功能它的网站。我想你可以通过 curlwget 或类似的东西自动执行此操作(包括身份验证)。

If you mean your own tags, then the easiest solution is to use the Export feature on its web site. I guess you can automate this (including authentication) via curl, wget or something similar.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文