xuv's notebook

Side notes, howtos and random bits of information related to Julien Deswaef's projects

User Tools

Site Tools


projects:love_machine

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
projects:love_machine [2014/01/16 14:39] – [What?] Julien Deswaefprojects:love_machine [2015/12/28 21:39] (current) – [Thoughts & observations] Julien Deswaef
Line 8: Line 8:
 [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/juego/loveMachine|Github]]
  
-[loveMachine] is a piece of [[https://scribe.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://twitter.com/xuv| @xuv]]
  
 ==== Why? ==== ==== Why? ====
Line 24: Line 24:
  
 ==== Do you need a reason to run it? ==== ==== Do you need a reason to run it? ====
-  * You already **like** everything your friends post on Facebook. This will saves you time+  * You already **like** everything your friends post on Facebook. This will save you time.
-  * You think you can get a higher **like** score than someone who used the software before you.+
   * You want attention from your friends. By **liking** everything they do, they'll notice you.   * You want attention from your friends. By **liking** everything they do, they'll notice you.
   * You are concerned about your privacy and would **like** to insert false preferences in your Facebook profile.   * You are concerned about your privacy and would **like** to insert false preferences in your Facebook profile.
   * You think Facebook is stupid by letting you do this. And you **like** making Facebook look stupid.   * You think Facebook is stupid by letting you do this. And you **like** making Facebook look stupid.
 +  * You think you can get a higher **like** score than someone who used the software before you.
   * You just **like** free stuff.   * You just **like** free stuff.
  
 ==== Installation ==== ==== Installation ====
-The script has been tested on Ubuntu 10.04, Windows XP and Mac OSX.+The actual script has been tested on debian.
  
 You will need: You will need:
-  * Firefox / Chrome +  * [[https://github.com/xuv/loveMachine/tree/master/casperjs|[loveMachine]]] 
-  * Python >2.6 (not tested with python 3) +  * Casperjs 
-  * Selenium2 python API +  * Phantomjs 
-  * and a copy of [[https://github.com/juego/loveMachine/|[loveMachine]]]+  * A facebook account
  
-Detailed installation procedure for[[projects:Love Machine:Install loveMachine on Windows| Windows]], [[projects:Love Machine:Install loveMachine on Mac OSX| Mac OSX]] and [[projects:Love Machine:Install loveMachine on Ubuntu| Ubuntu]]+Here is a little tutorial on how to install CasperJs and PhantomJs on Debian stablehttps://www.dvdheiden.nl/2013/07/30/installing-phantomjs-and-casperjs-on-linux/
  
 == Usage: == == Usage: ==
-<code bash>python loveMachine.py [Options] [<fb_login> <fb_password>]</code> 
-Arguments are not mandatory. Login and password will then be asked on startup. 
  
-Options+If you just want to run it by "hand", go into the directory where you downloaded the loveMachine and execute this command
-  -FF //uses Firefox// +<code bash>caserjs loveMachine.js --email=<fb_login> --password=<fb_password></code> 
-  * -CR //uses Chrome (still in Alpha)// + 
-  * -<page_username> //switches your identity to that page... if you are an admin of it, of course// +If you want to setup a cron every hour, you will have to write a crontab like this: 
-  -//simulates the like-clicks (for testing purposes)//+<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 ===
Line 96: Line 105:
 == 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]]
  
 ==== Future? ==== ==== Future? ====
 Some thoughts regarding the possible evolution of the script: Some thoughts regarding the possible evolution of the script:
-  * Like on comments? ads? pages?+  * Like ads? pages?
   * Turn it into a one-click-setup-and-play application   * Turn it into a one-click-setup-and-play application
-  * Use FB Graph API? (ethical dilemma) 
projects/love_machine.1389879597.txt.gz · Last modified: 2014/01/16 14:39 by Julien Deswaef