A tool to download all the images of a Facebook page.
Requires:
- Python 3, which you can download here, along with the selenium library;
- geckodriver, a Firefox WebDriver (refer to its repository for installation instructions).
Download the file facebook-downloader.py from this repository.
Open the command prompt from the folder where facebook-downloader.py is located and run the following command:
python facebook-downloader.py [URL]
replacing [URL] with the URL of the Facebook page of which you want to download the images.
If you want to download images in different folders based on the albums they are located in, you can pass this argument:
-a, --album download images in different folders corresponding to the albums they are located in
The script will create a facebook folder, a subfolder with the name of the page, and eventually a subfolder for each album where the images will be saved.
This project is licensed under the MIT License - see the LICENSE file for details.
Facebook makes it nearly impossible to scrape the content of its webpages, due to cookie banners, login prompts, geo-blocking, and error messages. This code initially used to work in several situations, but it has become unusable now; therefore, the repository has been archived.