usage: comment_myspace ( -m message | -f filename ) [-y] [-d] [-i] [-r]
[-n max_count] [-u username -p password] [-c cache_file]
[friendID ...]
Simple script to leave a comment for each of our friends using the WWW::Myspace::Comment Perl module. By default, it will leave a maximum of 50 comments (see the -n option below), then exit displaying a message containing the result code returned from the post_comments method (DONE, COUNTER, or CAPTCHA). ``perldoc WWW::Myspace::Comment'' for more info.
joe@somewhere.com
ILike2havelongpasswords
Just stopping by to say hi!
- Joe
The above will set username to ``joe@somewhere.com'', the password to ``ILike2havelongpasswords'', and the message to:
Just stopping by to say hi! - Joe
All characters are safe when passing comments this way, and you can also pass HTML in the message. Note that myspace does allow users to strip HTML from comments, so make sure your stripped message is still readable.
The reset is done -before- commenting begins.
Post to only two friends (will prompt for username and password): comment -m 'Merry Christmas\!\!\!' 370234 275034 Post "Happy New Year!!!" to all our friends (will prompt for username and password): comment -m 'Happy New Year\!\!\!' Post to all Joe's friends using "joe@somewhere.com"'s account: comment -m 'Just saying hi' -uKnown Issues / To Do
CAPTCHA: MySpace.com allows 53 or 55 posts before requiring a CATCHA response, then allows 3 before requiring it agian. Not sure what the timeout is on this (12 hours?).Note that the evolving point of leaving comments is to make sure that we're linked to from as many pages as possible, and mentioned on as many pages as possible. We want to appear to ``be everywhere''. Since we can only post to about 50 pages a day, we maximize our exposure by checking each page we're going to post on to see if we're already there and skipping it if we are.
To Do:
- Provide a CGI interface so band members can coordinate and type in the CAPTCHA code. Interface would act as a relay: for each person we'd auto-post to, display the filled in comment form and have them customize it and/or fill in the captcha code. Could run in semi-automatic mode where it'd only display the page for them if it got a code request.