A simple tool to save IG Stories of any user to your Google Drive with just Google Sheets and Apps Script
AGPL-3.0 License
Standardized log datetime format (#80)
insertNewLog
function in logger.js
to receive a JavaScriptdatetime
parameter instead of a string.datetime
parameter to a datetime string in the format of"yyyy-MM-dd HH:mm:ss"
using the Utilities.formatDate()
method.fetcher.js
file to pass the date and time as a Date
objectinsertNewLog
function.Resolved the "No item with the given ID could be found" error (#112)
DriveApp.getFileById
method call in a try-catch
block inlogger.js
.catch
block if an exception is thrown./docs
(#96)Corrected the permalink URLs of "Release Notes" and "Advanced Configurations"
pages.
Updated API endpoint URLs for status badges.
Enhanced formatting of H2 headers in release notes:
Refined and styled the changelog.
codeql-analysis.yml
Full Changelog: https://github.com/chriskyfung/AutoFetcher-IG-Stories-to-GDrive/compare/lib-v9...lib-v10
Published by chriskyfung 9 months ago
Add custom menu and menu items to Google Sheets
Allow moving downloaded files to other Google Drive folder via Google Sheet
Allow logging HTTP status code and headers from the Instagram API response
Add new error codes to identify if the API request returns response in HTML instead of JSON:
0xf3
: Include not-logged-in in the HTML content0xf4
: Other HTML responsesAdd the dist/instance/code.js
file for developers to deploy a Google Sheet project with a standalone script
TypeError: Cannot read properties of undefined (reading 'split')
#82. Validate the object type before using the String.Split methodError: Address unavailable:... (code: 0xf1)
#86. Continue to process the next Instagram user instead of terminating the script execution immediatelynpx clasp
to simplify the npm scripts in the package.json
filefetch()
function in fetcher.js
getFileDetails()
located in the utils.js
filehtml
parameter to data
inside the tryGetStories()
functionnpm test
script in package.json
to run jest with a custom configuration file in jest.config.js
docs/_config.yml
fileLICENSE.md
to LICENSE.txt
filedocs/index.md
files #95
CHANGELOG.md
fileutils.test.js
file, which contains a test suite for the getFileDetails()
function in utils.js
, in the test folderFull Changelog: https://github.com/chriskyfung/AutoFetcher-IG-Stories-to-GDrive/compare/build230216a...build240205a
Published by chriskyfung 9 months ago
Full Changelog: https://github.com/chriskyfung/AutoFetcher-IG-Stories-to-GDrive/compare/lib-v8...4.3.0-alpha
Published by chriskyfung over 1 year ago
Full Changelog: https://github.com/chriskyfung/AutoFetcher-IG-Stories-to-GDrive/compare/build230214a...build230216a
Published by chriskyfung over 1 year ago
Full Changelog: https://github.com/chriskyfung/AutoFetcher-IG-Stories-to-GDrive/compare/build221013a...build230214a
Published by chriskyfung about 2 years ago
Published by chriskyfung about 2 years ago
Full Changelog: https://github.com/chriskyfung/AutoFetcher-IG-Stories-to-GDrive/compare/build220823a...build220904a
Published by chriskyfung about 2 years ago
x-asbd-id
and x-csrftoken
to request headerFull Changelog: https://github.com/chriskyfung/AutoFetcher-IG-Stories-to-GDrive/compare/build2206b...build220823a
Published by chriskyfung over 2 years ago
Full Changelog: https://github.com/chriskyfung/AutoFetcher-IG-Stories-to-GDrive/compare/build2112a...build2206b
Published by chriskyfung almost 3 years ago
New Features to Log Sheet by @chriskyfung in https://github.com/chriskyfung/AutoFetcher-IG-Stories-to-GDrive/pull/22
Save the filename of downloaded files in Column E on log sheet page.
Show the thumbnail preview and open the file on Drive by hovering and clicking on a hyperlinked filename.
Delete multiple items and their corresponding files from Drive by selecting the checkboxes in Column F and then clicking on "Delete Selected" of log sheet page.
Full Changelog: https://github.com/chriskyfung/AutoFetcher-IG-Stories-to-GDrive/compare/build2111a...build2112a
To use the new version in your existing Google Sheet file, you need to update it by:
making a new copy of our Google Sheet template, or
following the below steps to manually update your Google Sheet file.
Go to Logs sheet, add Saved Filename and Select to the cells E1 and F1 as the column headings, respectively.
Select Insert > Drawing from the main menu.
In the Drawing dialog, create a button-like shape with adding the text Delete Selected on it. Then, click Save and Close button.
Move and scale the button drawing it to appropriate size and position.
Select Extensions > Apps Script from the main menu to open the Apps Script Editor.
Double-click IGStoriesToGDrive under the Libraries section in the left pane.
Change the Version to 2 from the dropdown (as the picture below). Then, click Save.
Add the following code to your Google Sheet's Apps Script:
function deleteSelected() {
const IGSF = IGStoriesToGDrive.getInstance();
IGSF.deleteSelected();
}
Click the Save project icon to save the change.
Go back to your Google Sheet file, right-click the button drawing and then select the three-dots ( โฎ ) icon > Assign script.
Enter deleteSelected
(as the picture below). Then, click OK to close the dialog.
Test the script by clicking the Delete Selected button. You should see a prompt like this:
Click No to cancel running the script.
Published by chriskyfung almost 3 years ago
๐๐ MAJOR UPGRADE
Integration of Google Sheet was made to provide a user-friendly GUI for configurations and loggings. The new version allows you to set up your subscriptions and user settings easily and systematically, rather than hard coding them in the Apps Script. Logs will also store in the same Google Sheet file instead of saving separately in multiple Google Doc files.
Full Changelog: https://github.com/chriskyfung/AutoFetcher-IG-Stories-to-GDrive/compare/build2109a...build2111a
Published by chriskyfung about 3 years ago
๐ MAJOR CHANGES:
Published by chriskyfung almost 4 years ago
Fixes #11
Published by chriskyfung about 4 years ago
Published by chriskyfung over 4 years ago
New function called test_pipeline()
has been added to check if there are any stories shown from the Instagram accounts of BBCNews, NASA and Medium.
Published by chriskyfung over 4 years ago
The version Build 2020.05.14 failed on 2020-06-02 due to the suspension of the download source, storydownloader.net. The data of IG stories has been changed to fetch from the official site in the new version Build 2020.06.02.
Published by chriskyfung over 4 years ago
IMPORTANT UPDATE
Due to the suspension of storyig.com, the former version has failed since 2020-05-08.
The new script fetches IG stories from storydownloader.net.