From 93b2c4b2c34d3f1e765dfc8fe8b29bf816eefaef Mon Sep 17 00:00:00 2001 From: Primo <44984918+m-primo@users.noreply.github.com> Date: Fri, 4 Jun 2021 00:35:44 +0200 Subject: [PATCH] file renamed & typo --- README.md | 18 +++++++++--------- facebook-friends.py => app.py | 0 2 files changed, 9 insertions(+), 9 deletions(-) rename facebook-friends.py => app.py (100%) diff --git a/README.md b/README.md index 62391e2..1884f46 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ You'll need to have: Once that's all set up: -1. Clone this repository ```git clone https://github.com/m-primo/facebook-friends``` . +1. Clone this repository ```git clone https://github.com/m-primo/facebook-friends```. 2. Go to the cloned directory ```cd facebook-friends```. 3. Install the requirements ```pip install -r requirements.txt```. @@ -28,21 +28,21 @@ password=yourpassword # Run ## 1st degree friend connections (your friends) -1. Run ```python facebook-friends.py```. +1. Run ```python app.py```. 2. It will open a browser window and will fill your username & password automatically. 3. You should see your Facebook friends page and the page will be scrolling to the bottom automatically. -4. A CSV file will be created with the data (1st-degree_YYYY-MM-DD_HHMM.csv). +4. A CSV file will be created with the data in the `data` directory with the name `1st-degree_YYYY-MM-DD_HHMM.csv`. ## 2nd degree friend connections (your friend's friends) *Note: This could take days if you have a lot of friends!* -1. Get your 1st degree connections first, so you should have the 1st-degree CSV file. -2. Put the 1st-degree CSV in the same directory as `facebook-friends.py`. -3. Run ```python facebook-friends.py 1st-degree_YYYY-MM-DD_HHMM.csv```, with the actual CSV filename. +1. You should have the 1st-degree CSV file. So, get your 1st degree connections first. +2. Put the 1st-degree CSV in the `data` directory. +3. Run ```python app.py data/1st-degree_YYYY-MM-DD_HHMM.csv``` with the actual CSV filename. 4. A browser window will open. 5. You should see the script looping through your Facebook friend's friend pages. -6. A CSV file will be created with the data (2nd-degree_YYYY-MM-DD_HHMM.csv). +6. A CSV file will be created with the data in the `data` directory with the name `2nd-degree_YYYY-MM-DD_HHMM.csv`. ## Disconnections (who unfriended you) -1. Run ```python facebook-friends.py 1st-degree_YYYY-MM-DD_HHMM.csv un```, with the actual CSV filename. +1. Run ```python app.py data/1st-degree_YYYY-MM-DD_HHMM.csv un```, with the actual CSV filename. 2. It will do the same as "1st degree connections" to get your current friends. -3. You should see who unfriended you, and also it will be saved in CSV file (1st-degree-disconnections_YYYY-MM-DD_HHMM.csv). +3. You should see who unfriended you, and also it will be saved in CSV file in the `data` directory with the name `1st-degree-disconnections_YYYY-MM-DD_HHMM.csv`. diff --git a/facebook-friends.py b/app.py similarity index 100% rename from facebook-friends.py rename to app.py