This is a small Node.js server for handling a Adopte-Un-Mec (AuM) Greasemonkey script and Phantombuster bot.
Its main job is to store women profiles in MongoDB for stats and auto-messaging by the bot.
The greasemonkey script is available in greasemonkey/
for all Firefox users. However the Phantombuster bot will remain closed-source for now (for obvious reason) — this repository remains very useful without it.
Note: the HTML/AngularJS views are, it seems, completely broken. I don't have time to fix them so they'll stay that way. They're not very useful anyway. This is a Yeoman deployment with lots of unused stuff...
Obviously you need a running MongoDB server.
npm install
bower install
(or not, we don't really care about the broken HTML views)cd server/config
cp config.local.sample.coffee config.local.coffee
vim config.local.coffee
and configurecd ../..
grunt build
(don't know if it's needed or not...)PORT=50757 grunt serve
Optionally enable SSL by adding sslcert/server.key
and sslcert/server.crt
.
cd greasemonkey
coffee -w -o ~/.mozilla/firefox/XXXXX.default/gm_scripts/YYYYY/ -c aum.user.coffee
cp config.sample.js ~/.mozilla/firefox/XXXXX.default/gm_scripts/YYYYY/config.js
vim ~/.mozilla/firefox/XXXXX.default/gm_scripts/YYYYY/config.js
and configure- Visit AuM and enjoy!
The bot will automatically collect stats over time, however you might want to generate stats from the beginning of your subscription to AuM.
It's useful if you want to know what profile photo works best over time, for example.
To generate all your stats:
- Have the app properly configured and up with
subscribeDate
andserverUrl
set (the config file will be used as well as the server) cd generate-stats
- Save
http://www.adopteunmec.com/api/contacts?count=1000
tocontacts.json
- Save
http://www.adopteunmec.com/api/visits?count=10000
tovisits.json
- Set
dryRun
toyes
ingenerator.coffee
coffee generator.coffee
to test- If it seems OK, set
dryRun
tono
and launch again
API endpoint to get all the stats as a CSV: https://your-host.com/api/stats/csv?key=XXXX
. You can generate nice looking Google Docs graphs with this :)