1COMMENT_MYSPACE(1) User Contributed Perl Documentation COMMENT_MYSPACE(1)
2
3
4
6 comment_myspace - Leave a comment for your Myspace friends
7
9 Version 0.03
10
12 usage: comment_myspace ( -m message ⎪ -f filename ) [-y] [-d] [-i] [-r]
13 [-n max_count] [-u username -p password] [-c cache_file]
14 [friendID ...]
15
16 Simple script to leave a comment for each of our friends using the
17 WWW::Myspace::Comment Perl module. By default, it will leave a maximum
18 of 50 comments (see the -n option below), then exit displaying a mes‐
19 sage containing the result code returned from the post_comments method
20 (DONE, COUNTER, or CAPTCHA). "perldoc WWW::Myspace::Comment" for more
21 info.
22
23 -m message
24 Post "message" to the friends' page (beware shell escapes!)
25
26 -f filename
27 Read the account, password, and message from filename. The file
28 must contain the username on the first line, the password on the
29 second line, and the message starting on the third line, like this:
30
31 joe@somewhere.com
32 ILike2havelongpasswords
33 Just stopping by to say hi!
34
35 - Joe
36
37 The above will set username to "joe@somewhere.com", the password to
38 "ILike2havelongpasswords", and the message to:
39
40 Just stopping by to say hi!
41
42 - Joe
43
44 All characters are safe when passing comments this way, and you can
45 also pass HTML in the message. Note that myspace does allow users
46 to strip HTML from comments, so make sure your stripped message is
47 still readable.
48
49 -y Yes mode: Don't ask for confirmation, just do it. (careful!!!)
50 This is for cron jobs, but normally you should use the confirmation
51 to make sure the shell hasn't munged your message and that the
52 friend count and exclusion count look ok before you go send stuff
53 you didn't want to people you didn't want to...
54
55 -d Inserts a random delay before running. Do this is you're running
56 the script from crontab to make it look more like a human.
57
58 -i Ignore Duplicates. If the -i flag is passed, comment_myspace will
59 not check the profile page for duplciate comments, it will just
60 post.
61
62 -r Reset the exclusions file. comment_myspace remembers who it has
63 commented before and won't comment them again. Using the -r flag
64 resets this list (maybe I should call it -f for "forget?" :) Use
65 this if you want to post a new comment to people and you don't care
66 if you've commented them before. Note that unless you use the -i
67 flag also, comment_myspace will still skip profiles on which it
68 sees your profile link already.
69
70 The reset is done -before- commenting begins.
71
72 -n max_count
73 Only post max_count comments. This defaults to 50 in WWW::Mys‐
74 pace::Comment as of this writing. Setting a value here will pass
75 it to the WWW::Myspace::Comment object. This is mostly useful for
76 posting fewer than 50 comments at a time, since Myspace won't let
77 you post more than that without giving you a CAPTCHA.
78
79 -u username
80 Use "username" as the username when logging in
81
82 -p password
83 Use this password to log in (must be provided if -u is used
84
85 friendID
86 Post to this (or these) friendIDs only
87
88 -c cache_file
89 Use "cache_file" as the file to store/read the list of friends
90 we've commented. As comments are left, the status of the post will
91 be written to this file. If you don't provide this, the default
92 cache_file will be used. See WWW::Myspace::Comment for details.
93
95 Post to only two friends (will prompt for username
96 and password):
97 comment -m 'Merry Christmas\!\!\!' 370234 275034
98
99 Post "Happy New Year!!!" to all our friends (will prompt for username
100 and password):
101 comment -m 'Happy New Year\!\!\!'
102
103 Post to all Joe's friends using "joe@somewhere.com"'s account:
104 comment -m 'Just saying hi' -u joe@somewhere.com -p FooBar92
105
107 CAPTCHA: MySpace.com allows 53 or 55 posts before requiring a CATCHA
108 response, then allows 3 before requiring it agian. Not sure what the
109 timeout is on this (12 hours?).
110
111 Note that the evolving point of leaving comments is to make sure that
112 we're linked to from as many pages as possible, and mentioned on as
113 many pages as possible. We want to appear to "be everywhere". Since we
114 can only post to about 50 pages a day, we maximize our exposure by
115 checking each page we're going to post on to see if we're already there
116 and skipping it if we are.
117
118 To Do:
119
120 - Provide a CGI interface so band members can coordinate and type in the
121 CAPTCHA code. Interface would act as a relay: for each person we'd
122 auto-post to, display the filled in comment form and have them customize
123 it and/or fill in the captcha code. Could run in semi-automatic mode
124 where it'd only display the page for them if it got a code request.
125
126
127
128perl v5.8.8 2006-06-01 COMMENT_MYSPACE(1)