While browsing for scripts that might make my often very high-volume webmining for research less time-consuming/more automated, I came upon the following on Google Code
fb-crawl.pl is a script that crawls/scrapes Facebook friends and adds their information to a database.
It can be used for social graph analysis and refined Facebook searching.
– Aggregates information from multiple accounts
This is very useful for social engineering and market research, and could also very easily find fans among the more unsavory Wall creepers. They don’t even have to be programming-competent, so most neck-bearded shiftless layabouts and of course Anons can do it. You only have to plug in your FB email address and a MySQL password (you can download and click-to-install MySQL with simple prompts if you don’t have it).
Crawl your friends’ Facebook information, wall, and friends:
$ ./fb-crawl.pl -u firstname.lastname@example.org -i -w -f
Crawl John Smith’s Facebook information, wall, and friends:
$ ./fb-crawl.pl -u email@example.com -i -w -f -name ‘John Smith’
Crawl Facebook information for friends of friends:
$ ./fb-crawl.pl -u firstname.lastname@example.org -depth 1 -i
Crawl Facebook information of John Smith’s friends of friends:
$ ./fb-crawl.pl -u email@example.com -depth 1 -i -name ‘John Smith’
Extreme: Crawl friends of friends of friends of friends with 200 threads:
$ ./fb-crawl.pl -u email@address -depth 4 -t 200 -i -w -f
Users of the script can also aggregate information about relationship status by location or by school, essentially allowing stalkers to create automated queries for lists of potential victims.
Find local singles:
SELECT `user_name`, `profile` FROM `info` WHERE `current_city` = ‘My Current City, State’ AND `sex` = ‘Female’ AND `relationship` = ‘Single’
Find some Harvard singles:
SELECT `user_name`, `profile` FROM `info` WHERE `college` = ‘Harvard University’ AND `sex` = ‘Female’ AND `relationship` = ‘Single’
And if a stalker wants to make an even handier database of GPS located targets, there are plug-ins:
To load a plug-in use the -plugins option:
$ ./fb-crawl.pl -u email@address -i -plugins location2latlon.pl
This plug-in adds the user’s coordinates to the database using the Google Geocoding API.
And as no stalker want to terrorize someone age-inappropriate, they can sort by DoB as well
This plug-in convert the user’s birthday to MySQL date (YYYY-MM-DD) format.