Making Comments scrapeable?
darryl
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:
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
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
0
Comments
It should be pretty easy to do, trying pointing around in some of the SmugMug JS files
David
SmugMug API Developer
My Photos