Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ashtonmeuser/facebook-tagged-photos

Facebook is terrible. Download all photos you're tagged in and GTFO.
https://github.com/ashtonmeuser/facebook-tagged-photos

Last synced: about 1 month ago
JSON representation

Facebook is terrible. Download all photos you're tagged in and GTFO.

Awesome Lists containing this project

README

        

# Download Facebook Tagged Photos

Download all photos a user is tagged in on Facebook.

## Dependencies

Requires Python 3. The Python Software Foundation provides instructions for installing Python 3 on [Unix](https://docs.python.org/3/using/unix.html#getting-and-installing-the-latest-version-of-python) and [Windows](https://docs.python.org/3/using/windows.html#installing-python).

Selenium is also required. It is a software testing framework that allows Python to take control of a web browser. You can install Selenium by running the following.

```
pip install selenium
```

If you have several versions of pip installed, you may need to run the follwing.

```
pip3 install selenium
```

Install other dependencies:

```
pip install -r requirements.txt
```

Chrome is used to interact with Facebook via Selenium. As such, you will need to install a driver for Chrome. The driver can be found [here](https://sites.google.com/a/chromium.org/chromedriver/downloads). If using a Unix system, add the driver to `/usr/local/bin`.

Make sure you are using chromedriver >= 2.42 (`chromedriver
--version`).

Clone this repo and you're good to go!

### Running

First, find your Facebook user ID. At the time of writing, [this](https://findmyfbid.in) tool was functional.

Run the below command in the command line from within the project directory, replacing `` with your Facebook ID.

```
python3 facebook_photos.py
```

If you'd prefer to have the photos saved elsewhere, provide another argument of the desired output directory. This results in the following command.

```
python3 facebook_photos.py
```