Skip to content

Instantly share code, notes, and snippets.

@santteegt
Last active June 17, 2018 03:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save santteegt/2e70fe88b67ce52842ec451bd53ac4d2 to your computer and use it in GitHub Desktop.
Save santteegt/2e70fe88b67ce52842ec451bd53ac4d2 to your computer and use it in GitHub Desktop.
Running scrapper

How to install FBS script

  1. Download & Install Python 3.6.x release from the official webpage
  2. Download FBS project from this link and unzip it.
  3. Download the latest release of geckodriver from the official webpage, unzip it and paste the executable file on the FBS project's folder.
  4. Add geckodriver PATH to the PATH environment variable of your OS.
  5. Open a terminal (or CMD on Windows), and go to the FBS project folder.
  6. In order to install the project dependencies you need to run the following:
$ py -m pip install -r requirements.txt

How to run the FBS Script

  1. Open a terminal (or CMD on Windows)
  2. Go to the FBS project folder by running the following:
$ CD <FBS_DIRECTORY>
  1. In order to extract your 1st degree FB connections, you need to execute the script as follows:
$ py facebook-connections.py -u <you_email_address> -p <your_passowrd>
  1. In order to extract your 2nd degree FB connections, you have to run the script multiple times in batch mode, using the following command:
$ py facebook-connections.py -u <you_email_address> -p <your_passowrd> --seeds <1st-degree-file.csv> --workers 1
  1. You can check the to_process.csv file to verify you finished processing the social graph you were assigned. A better approach is to open your 1st-degree file to make sure the all rows has TRUE value in column processed.
@santteegt
Copy link
Author

Las personas que deseen ayuda con la instalación y ejecución del script y tengan laptop, podemos darles una ayuda en nuestra oficina. La dirección es Juan Jaramillo y Benigno Malo esquina. Los que deseen ir por favor avisarnos al correo hernangt12re3@gmail.com para coordinar.

@santteegt
Copy link
Author

Si tienen dudas de como establecer la variable de entorno PATH para geckodriver, pueden revisar el siguiente video https://youtu.be/KNzGtHI_60o?t=1m32s

@cis-ne
Copy link

cis-ne commented May 23, 2018

hasta el literal 6 me sale peor la verda cuando debo copiar en el comando el link despues del lieral 6 me sale "
q py no se reconoce como un comando externo e interno, programa o archivo por lote ejcutables"

@santteegt
Copy link
Author

santteegt commented Jun 1, 2018

@santteegt
Copy link
Author

Para corregir el error de DLL se debn ejecutar los siguientes comandos en un CMD:

$ CD <directorio_proyecto>
$ py -m pip uninstall pandas
proceed(y/n) #presionar y
$ py -m pip install pandas==0.22.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment