| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| projects:love_machine [2014/02/04 23:39] – [Installation] Julien Deswaef | projects:love_machine [2025/11/11 12:06] (current) – [What?] Julien Deswaef |
|---|
| |
| ==== What? ==== | ==== What? ==== |
| [loveMachine] is a program (or as I prefer to call it, a bot) that will log into a Facebook account, repetitively click the "like" buttons on every possible content shown in the home stream, then post its amazing score as a status and log out. | [loveMachine] is a bot that will log into a Facebook account, repetitively click the "like" buttons on every possible content shown in the home stream, then post its amazing score as a status and log out. |
| |
| [loveMachine] is now written in javascript and uses [[http://casperjs.org/|CasperJs]]. The code is shared on [[https://github.com/juego/loveMachine|Github]] | [loveMachine] is now written in javascript and uses [[http://casperjs.org/|CasperJs]]. The code is shared on [[https://github.com/xuv/loveMachine|Github]] |
| |
| [loveMachine] is a piece of [[https://twitter.com/julian0liver/status/136066237171105792|software art]] by [[http://twitter.com/xuv| @xuv]] | [loveMachine] is a piece of [[https://twitter.com/julian0liver/status/136066237171105792|software art]] by [[http://m.xuv.be/julien| @xuv]] |
| |
| ==== Why? ==== | ==== Why? ==== |
| * Phantomjs | * Phantomjs |
| * A facebook account | * A facebook account |
| | |
| | Here is a little tutorial on how to install CasperJs and PhantomJs on Debian stable: https://www.dvdheiden.nl/2013/07/30/installing-phantomjs-and-casperjs-on-linux/ |
| |
| == Usage: == | == Usage: == |
| | |
| | If you just want to run it by "hand", go into the directory where you downloaded the loveMachine and execute this command: |
| <code bash>caserjs loveMachine.js --email=<fb_login> --password=<fb_password></code> | <code bash>caserjs loveMachine.js --email=<fb_login> --password=<fb_password></code> |
| | |
| | If you want to setup a cron every hour, you will have to write a crontab like this: |
| | <file txt loveCron>0 */1 * * * PHANTOMJS_EXECUTABLE=/usr/local/bin/phantomjs /usr/local/bin/casperjs /home/juego/loveMachine/casperjs/loveMachine.js --email=<fb_login> --password=<fb_password> > loveMachine.log</file> |
| | |
| | You'll have to also set this line at the beginning of loveMachine.js file to an absolute path: |
| | |
| | <code javascript> |
| | var casper = require('casper').create({ |
| | clientScripts: [ |
| | 'include/jquery-1.10.2.min.js' // <- Change this to an absolute path |
| | ], |
| | </code> |
| | |
| | |
| |
| ==== Links === | ==== Links === |
| == Quotations == | == Quotations == |
| |
| * //"[Facebook], c'est de l'exhibitionnisme. Autant montrer ses organes génitaux!"// Jacqueline Harpman (Écrivain et psychanalyste) - Le Soir 09/11/2011 | * //"[Facebook], c'est de l'exhibitionnisme. Autant montrer ses organes génitaux!"// Jacqueline Harpman (Écrivain et psychanalyste) - [[http://archives.lesoir.be/-facebook-autant-montrer-ses-organes-_t-20111109-01NFA2.html |Le Soir 09/11/2011]] |
| * //“Ce n'est pas la même chose de 'follower' (suivre) sur Twitter que de 'liker' (aimer) sur Facebook. Le lien est plus affectif. L'audience est aussi plus captive.”// [[http://www.lexpress.fr/actualite/politique/sarkozy-poursuit-son-lifting-sur-facebook_1090024.html|Conseiller de Nicolas Sarkozy]] | * //“Ce n'est pas la même chose de 'follower' (suivre) sur Twitter que de 'liker' (aimer) sur Facebook. Le lien est plus affectif. L'audience est aussi plus captive.”// [[http://www.lexpress.fr/actualite/politique/sarkozy-poursuit-son-lifting-sur-facebook_1090024.html|Conseiller de Nicolas Sarkozy]] |
| |