Where config_file is a YAML file containing account and message
info. Note that this should be readable only by you
(i.e. chmod 600 config_file).
This script is a command-line front end for the WWW::Myspace::Message
module that lets you message all the members of a specific MySpace group.
This is handy if, say, your band sounds like another band and you
want to send a message to the members of that group saying that they
might like your music because they like that band.
Sample config file:
subject: Hi there!
This is a message.
It is, and must be, indented by two spaces.
# You can also do this to specify multiple groups (notice the indent again):
This script will read the config file and start messaging. If
it hits the max_count value or a CAPTCHA response, it will sleep
for 24 hours, then continue. If the script is stopped or interrupted,
re-run it using the same config file and it will pick up where it left
off. The script invokes the send_all method in WWW::Myspace::Message.
Use perldoc WWW::Myspace::Message to read the docs on that module.
Note: To run this as a cron job, set delay_time to 0 in the config
file. This will make it exit instead of pausing when it hits max_count
or CAPTCHA. This is good because itll re-read the friends list on the
next run, so itll pick up any changes.
Be careful when specifying multiple groups. The script will read all the
friends from all the groups each time its run. Since youre only going to
message about 300 per day, that can be a big waste of resources.
Try to do one group at a time.
Please report any bugs or feature requests, or send any patches, to
bug-www-myspace at rt.cpan.org, or through the web interface at
I will be notified, and then youll automatically be notified of progress on
your bug as I make changes.
IF YOU USE A MAIL SERVICE (or program) WITH JUNK MAIL FILTERING, especially
HOTMAIL or YAHOO, add the bug reporting email address above to your address
book so that you can receive status updates.
Bug reports are nice, patches are nicer.