Pyspace
Pyspace is a cross-platform Myspace account management tool written in python. It is capable of inviting friends automatically, deleting pending requests, making statistics of your friends, and much more.
It’s free, open source, and released under the GPL.
Features
- Send automatic friend requests to a group of people.
- Handles pages of friend lists, so it's possible to deal with large amount of users.
- Add currently online people only, which is really helpful, because these users are going to deny or accept your request instantly and your pending requests folder won't increase in size because of requests sent to people who haven't logged in for months.
- Delete pending requests.
- Generate statistics of your friends. Know who your fans are, where they are located and learn lots of other information extracted from their page.
- List your friends easily by printing their ID, name, URL, etc.
- Config file, where you can set login information, parameters and aliases.
Installation
Python 2.4.4 is required.
- Windows
You need to install python first. Then download pyspace.zip. - GNU/Linux, Mac OS X
Most distributions of Linux and Mac have python installed. Download the pyspace.tar.gz package.
Extract the contents of the pyspace archive to a folder, and try running it from a console by typing
python pyspace.py -h
Pyspace should display its usage instructions.
Usage
Usage: pyspace [options]
-h, --help
print help and exit
-u, --user=USER
set myspace login name
-p, --password=PASSWORD
set myspace password
-a, --addfriendsof=ID
send request to the user's friends
-o, --online
add online people only
-g, --pages=P0,P1-P2,...,PN
add friends from listed pages only
-t, --sleeptime=SECONDS
sleep time between requests (default 5)
-d, --delete
delete pending friend requests
-s, --stats
print friend statistics
-l, --list
print list of own friends
prints only new ones if --oldlist is used
--oldlist=FILE
old list of friends, wildcards are supported
-b, --browser
set browser executable path to open captchas (default firefox)
-x, --exclude=F0,F1-F2,...,FN
exclude listed users from sending request
Files:
~/.pyspace.conf
pyspace user settings
Pyspace works with friend IDs. If you want to invite fans of a band, you need to know its friend ID first. It's quite simple. If you are viewing a page, for example the friends of a user, the location looks something like this:
hxxp://home.myspace.com/Modules/ViewFriends/FriendsView.aspx?friendID=xyz
after the 'friendID=' expression, you see a number instead of 'xyz'. This number is the friend ID.
Examples
Sending friend requests to the friends of user with friendID, change name@example.com to your e-mail address, and password to your password used for logging in to myspace.
python pyspace.py -u name@example.com -p password -a friendID
Sending friend requests to the friends of user with friendID extracted from pages 1, and from pages 3 to 5. Only add currently online users.
python pyspace.py -u name@example.com -p password -a friendID -g 1,3-5 -o
Generating statistics of your fans and saving it to a textfile called stats.txt.
python pyspace.py -u name@example.com -p password -s > stats.txt
A file called .pyspace.conf can be placed in the user's home directory substituting all parameters entered from the commandline.
# .pyspace.conf user = 'name@example.com' password = 'password' online = True exclude = [6221, 6222] neo = 66049968
Saving the config file above lets you execute the following command that adds all online friends of neo from the first five pages of their friend lists.
python pyspace.py -a neo -g 1-5
Since your email and password is stored in the config file, generating a statistics becomes easier also.
python pyspace.py -s > stats.txt
Pyspace uses firefox to open captchas by default. To get the captcha routine to work on Windows, you will to need specify the browser executable path.
python pyspace.py -u name@example.com -p password -a friendID -b "C:\\Program Files\\Mozilla Firefox\\firefox.exe"
or you can add the following line to your config file, please note the double backslashes:
browser = "C:\\Program Files\\Mozilla Firefox\\firefox.exe"
Donate
License
Pyspace is open source, released under the GPL.
Troubleshooting
- pyspace exits with the following error message:
Traceback (most recent call last): File "pyspace.py", line 30, in ? import subprocess ImportError: No module named subprocessPlease upgrade to python version 2.4.4.