Options

Making Comments scrapeable?

darryldarryl Registered Users Posts: 997 Major grins
Hi -- I would pose this to the API folks but gah, comments aren't in the API.

Anyways, I want to implement some kind of automatic Comment -> Keyword script for our site-wide-password protected site.

I thought it would be easy enough to fire off a script whenever an e-mail came in notifying me of a new comment, since the URL to the page is right there.

The script would scrape the page, find the comment, and use the API to append the text to the keywords. Easy.

Only... not so easy. Comments are displayed thusly:
******** type="text/javascript">
        showCommentPage(1);
</********

Well, crap. I can't figure out how to get a programmatic tool to send that command and get me the resultant text.

Any ideas how to do it with a JavaScript customization perhaps?

Thanks!

--Darryl

Comments

  • Options
    devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited October 14, 2007
    Darryl,

    It should be pretty easy to do, trying pointing around in some of the SmugMug JS files thumb.gif

    David
    David Parry
    SmugMug API Developer
    My Photos
Sign In or Register to comment.