SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 131 | Next

Raymond Yee

"Pro Web 2.0 Mashups: Remixing Data and Web Services"

You can associate tags with a given URL and look at an individual??™s collection of URLs
and the tags they use. In this section, I again explain the URL structures by browsing through
the site and noting the corresponding URLs.
You can look at the public bookmarks for a specific user (such as rdhyee) here:
http://del.icio.us/{user-id}
For example:
http://del.icio.us/rdhyee
You can see all the bookmarks of a user by tag here:
http://del.icio.us/{user-id}/{tag}
For example:
http://del.icio.us/rdhyee/NYTimes
You can see all the URLs that people have tagged with a given tag here:
http://del.icio.us/tag/{tag}
You can see just the popular URLs associated with the tag here:
http://del.icio.us/popular/{tag}
You can access today??™s popular items here:
http://del.icio.us/popular/
You can access just the newest popular ones here:
http://del.icio.us/popular/?new
Correlating a URL to a del.icio.us page is a bit trickier. Consider the following URL:
http://harpers.org/TheEcstasyOfInfluence.html
which you can reference from del.icio.us here:
http://del.icio.us/url/53113b15b14c90292a02c24b55c316e5
So, how do you get 53113b15b14c90292a02c24b55c316e5 from http://harpers.org/
TheEcstasyOfInfluence.html? The answer is that the identifier is an md5 hash of the URL.
In Python, the following line of code:
md5.new("http://harpers.org/TheEcstasyOfInfluence.html").hexdigest()
or the following PHP code:
$url = "http://harpers.


Pages:
119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143