📜 ⬆️ ⬇️

Automatic tags with del.icio.us

Faced the problem of automatic tagging of links for users of the site. When adding a new hyperlink, it is very convenient to get a hint of relevant tags, as it happens on del.icio.us and on other bookmarking services. I recommend to use the resources of your own site along with external sources to generate a list of tags. In the early stages of development of your project, the number of proposed options will be small, so the use of additional services will facilitate the task of link tagging for users. Relevant tags can also be used to recommend similar or thematic publications of the resource. Unfortunately, the official del.icio.us API does not describe the ability to solve the problem. But there is at least an official way to use JSON URL Feeds .

This service works as follows:
1. At the special URL on del.icio.us, the requested link is sent as md5 hash (for example, badges.del.icio.us/feeds/json/url/data?hash=46efc577b7ddef30d1c6fd13311b371e ).
Additionally, it is possible to get tags immediately by a number of URLs.
2. The result of the query is returned in JSON format.
3. The received data is parsed to form a list of tags that characterize this URL. On the official JSON URL Feeds page there is an example of working with query results (written in JavaScript).

Before use, be sure to read del.icio.us Terms of Service . Pay special attention to part 5 called Intellectual Property. I highly recommend leaving a link to the source of the provided tags.
')
Cross-post from the site: www.pleso.net/ru/publications/2008/04/24/auto-tags-del-icio-us

Source: https://habr.com/ru/post/24085/


All Articles