I have incorporated support for two new features in my Tagyu::Search module and learnt a lot about HTTP in the process.
1. Support for HTTP Basic AuthenticationWith this in place, it is now possible for Perl code using my module to break the one request per IP barrier imposed on anonymous users by Tagyu. So register yourself at Tagyu right now!
This is what you need to do in your code:
# Instantiate a new Tagyu::Search object.
my $tagyu = Tagyu::Search->new(
username => "[YOUR-USERNAME]",
password => "[YOUR-PASSWORD]"
# Invoke the SuggesTags method on the Tagyu::Search object.
my @tags = $tagyu->SuggestTags("[YOUR-TEXT]");
However anonymous searches through Tagyu::Search package are still supported.
2. Introduced two new methods SuggestTagsText and SuggestTagsURL.SuggestTagsText encodes all the special characters like '=', '+', '&', etc. before passing on the text to the Tagyu Web Service, while SuggestTagsURL considers its argument as a URL and uses the Tagyu Web Service to suggest tags for the text at the specified URL.
Download Tagyu-Search-0.03 and let me know how it works for you. As always, feedback is welcome!