Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/ashtonmeuser/facebook-tagged-photos
- Owner: ashtonmeuser
- Created: 2018-10-01T04:30:35.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-10-03T21:19:04.000Z (about 1 year ago)
- Last Synced: 2024-04-14T20:26:12.695Z (7 months ago)
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 6
- Watchers: 2
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
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
```