Fotoshare.co, does not always offer a built-in option to download all images or videos from an album at once. However, using the following script, you can automate the download process directly from your browser. This script will allow you to download all images and videos from a specific album on Fotoshare.co without the need for manual downloading.
- Open the Fotoshare Album:
Navigate to the album on Fotoshare.co that you want to download. Make sure the page is fully loaded and the sessionImages
object containing the image/video data is accessible in the browser's JavaScript environment.
- Open the Browser Developer Tools:
- In Chrome, press
Ctrl + Shift + I
(Windows) orCmd + Option + I
(Mac) to open Developer Tools. - In Firefox, press
Ctrl + Shift + I
(Windows) orCmd + Option + I
(Mac).
-
Go to the Console Tab:
Switch to theConsole
tab in Developer Tools, where you can execute JavaScript. -
Paste the Script:
Copy the provided JavaScript code (see below) and paste it into the console. Make sure that the sessionImages
object is already available on the page (this typically depends on how the page is structured or loaded).
- Run the Script:
After pasting the script, press Enter
to run it. The script will automatically download all the images and videos from the session, and you’ll see each file being downloaded.
- Check the Downloads Folder:
Once the script completes, check your browser’s default download folder. All files should be automatically saved without prompting for each file.
-
Session Structure:
Fotoshare.co stores albums and images in a nested structure. For example,sessionImages
might look like:{ "1xiXKdN8R9": { "377x5x1": { ... }, "2r7g9jm": { ... } }, "1~8IvladYd": { "53w35ed": { ... }, "2ge1vvp": { ... } }, ... }
Each session contains multiple images or videos, with each file having a unique
img
URL and associated file type (e.g.,mp4
,jpg
). -
Automatic File Detection:
The script checks each image entry in the session and detects the correct file extension from the img
URL or fileType
property. If fileType
is missing, it tries to infer it from the URL.
- File Naming:
Each file is named using a combination of the session ID and the unique image hash to avoid name conflicts across sessions. For example, 1xiXKdN8R9_377x5x1.mp4
ensures that filenames remain unique.
- No Prompts for Download Locations:
If the browser’s settings are configured to not ask where to save each file, the files will be automatically downloaded into the default download folder without further user interaction.
- Cross-Session Download:
The script handles multiple sessions by iterating through all the session IDs and downloading the corresponding files (images and videos) from each session.
- Efficiency: Download all files from a Fotoshare.co album in one go.
- Automation: No need to manually download each file or specify locations.
- Customizable: The script is designed to work with any Fotoshare album as long as the
sessionImages
object is available. - Browser-Friendly: Runs directly in the browser, no need for external tools or extensions.
- Browser Settings: Ensure that your browser’s download settings are configured to avoid prompts for each file. If this is not set up, the script might still ask where to save each file.
- Availability of
sessionImages
: This script assumes that thesessionImages
object is accessible and contains the correct data (URLs, hashes, and file types) for the images and videos in the album.
This is extremely helpful - thank you!
For anyone else looking at this, when copy pasting the code into the console you need to remove the example
sessionImages
object that is included.