How to send an SMS to save the website to Google Drive

This is a quick way to save an article or a website. Just send SMS to yourself and save the website as a PDF file to your Google Drive account to read later.

Right now, you can set up this convenient automation feature in just a few steps! Let's find out soon!

How to send an SMS to save the website to Google Drive

  1. Step 1: Send SMS to Google Sheets with IFTTT
  2. Step 2: Save URL to Google Drive
  3. Step 3: Activate the script on the sheet update
  4. Step 4: Run your script test

Step 1: Send SMS to Google Sheets with IFTTT

You do not have to sign up for any paid services to save pages and read offline. The first step is to set up automation so you can send SMS to Google Sheets. You will do this by activating an IFTTT applet.

First, access IFTTT (create an IFTTT account if you don't have an account yet), click My Applets, and then New Applet.

How to send an SMS to save the website to Google Drive Picture 1

Click This, then type SMS in the search field.

Select SMS.

Select Send IFTTT an SMS tagged .

How to send an SMS to save the website to Google Drive Picture 2

Next, enter #savepage into the Tag field .

This requires IFTTT to activate the applet anytime you send IFTTT an SMS message, and whether to use the #savepage tag in the message.

Don't worry about phone numbers to send messages, you'll get that number after this process.

How to send an SMS to save the website to Google Drive Picture 3

You are about to complete this step. Click Create trigger, then on the next page, click That.

This step will take you to the Action search page .

Write a new field in the Google spreadsheet to store the URL of the website you want to save.

Search for 'Sheets' and select Sheets action.

How to send an SMS to save the website to Google Drive Picture 4

On the next page, you will select Update cell in spreadsheet .

This tells IFTTT that whenever you send an SMS starting with #savepage, you want IFTTT to update a specific box in your spreadsheet with your Google Drive account.

How to send an SMS to save the website to Google Drive Picture 5

The next page is where you set up specifics for this action.

Set the fields on the next page as follows.

  1. Path drive folder : IFTTT / SMS
  2. Spreadsheet name : Article Warehouse
  3. Which cell : A2
  4. Value: {{Message}}

Before you click Create, visit your Google Drive account, create an IFTTT / SMS folder and create a spreadsheet to keep the URL you send.

The spreadsheet will look like this:

How to send an SMS to save the website to Google Drive Picture 6

Name the worksheet with the name you specified in the Spreadsheet field name.

As you can see, cell A2 is empty and ready to receive the URL value that you are about to send to IFTTT via SMS.

Now, back to IFTTT, click Create.

Write down the phone number you need to send SMS to save the website you want to read later.

Step 2: Save URL to Google Drive

Now, you have a system that automatically sends the URLs you want to save to Google Sheet.

Next, you'll need to create a Google Script to convert that URL into a PDF file and save it in the special 'MyArticles' folder in your Google Drive account. Don't worry, the script has been written for you and it's very simple.

But first, create a new folder in your Google Drive account called 'MyArticles'. Right click on it and select Get shareable link .

How to send an SMS to save the website to Google Drive Picture 7

Paste it into notepad and set it aside. You will need this special ID later.

Now, let's go back to the Google Sheet page called the Article Warehouse that you created above.

To create a new Google Script, click Tools and then click Script editor. Rename this project to SaveURL. Then paste the following script into Code.gs:

 function myFunction () { 
var ss = SpreadsheetApp.getActiveSpreadsheet ();
var sheet = ss.getSheetByName ('Sheet1');
var range = sheet.getRange (2,1);
var data = range.getValue ();
var URLtext = data.substring (10, data.length)
var response = UrlFetchApp.fetch (URLtext);
var htmlBody = response.getContentText ();
var blob = Utilities.newBlob (htmlBody, 'text / html'). getAs ('application / pdf'). setName (Date () + '_MyArticle.pdf');
var folder = DriveApp.getFolderById ("")
var file = folder.createFile (blob);
}

Here's how to do this step by step in this script:

1. Drag the cached URL in cell A2 (this is the 'getRange (2.1)' done).

2. Get the first 10 characters, followed by '#savepage', from the URL string.

3. Fetch web pages from the Internet.

4. Convert website to PDF format.

5. Save the PDF file to the drive you specified.

In the script, replace "" with the ID of the directory in the notepad file you saved above.

How to send an SMS to save the website to Google Drive Picture 8

Save this script by clicking the save drive icon.

Step 3: Activate the script on the sheet update

You want your script to run every time the spreadsheet changes, and a change in the spreadsheet means you sent a new SMS containing a URL to save.

To do this, in the Script Editor window , click Edit and then click Current project's triggers .

How to send an SMS to save the website to Google Drive Picture 9

You will see that there are no triggers available for this project.

Click on the blue link Click here to add one now .

How to send an SMS to save the website to Google Drive Picture 10

Configure the trigger by setting "Run" to myFunction and "Events" to From spreadsheet and On change .

Now your whole project is complete and ready to run!

Step 4: Run your script test

On your mobile phone, send SMS to the phone number you listed above. Make sure to include '#savepage' in front of the URL.

Just copy the URL from the browser window on your mobile phone and paste that URL into the SMS message.

How to send an SMS to save the website to Google Drive Picture 11

Next, check to make sure IFTTT is working properly.

Access your IFTTT account, click on the Applet you created for this project and check when it last ran.

How to send an SMS to save the website to Google Drive Picture 12

If everything works normally, the last time it runs will be close to the current time.

Once you have confirmed that your IFTTT application is working, go to your Google Drive account and check the folder you created for your article.

You will see a new PDF file appear in the last few minutes.

How to send an SMS to save the website to Google Drive Picture 13

Open the PDF file and make sure it has saved the website accordingly.

You will notice that images from the page are not included in the PDF version.

How to send an SMS to save the website to Google Drive Picture 14

In fact, the removal of images is useful and there are several reasons for this.

It greatly reduces the size of PDF files stored in the drive. It also lets you focus on saving the text you want to read later, and it makes the later skimming process less distracting.

This is a very effective way to quickly save web-based academic materials, news stories you want to read later, or any other online text you want.

This is just an example. There are many other examples of how you can increase your productivity with Google Scripts.

Good luck!

See more:

  1. How to backup SMS messages with SMS Backup and Restore
  2. How to backup and restore Zalo messages on Android phones
  3. 7 things you can do with email inbox without you knowing
4.1 ★ | 25 Vote

May be interested

  • [Infographic] How to become a 'power' user of Google Drive[Infographic] How to become a 'power' user of Google Drive
    google drive is a powerful free set of office tools today. quantrimang would like to summarize some valuable features that will help you level up and become a power user of this application.
  • How to Use Google DriveHow to Use Google Drive
    when google drive was first introduced, the software served as a place to store data in a cloud folder so you could access them anywhere. as drive software improved, it synchronized all google docs functions and became the hub for creating google documents and office tools. you can even install multiple apps into drive for broader functionality. check out the following instructions to get the most out of google drive.
  • Top 10 common Google Drive problems and solutionsTop 10 common Google Drive problems and solutions
    google drive lets you collaborate with others seamlessly. it is also integrated with many other services and files are always accessible. on top of that, you also get a huge amount of free storage.
  • How to uninstall and remove Google Drive from PC or MacHow to uninstall and remove Google Drive from PC or Mac
    perhaps you no longer want to use google drive or need to reinstall to fix the problem. do not worry! today's article will show you how to delete google drive from your windows or mac pc.
  • Full list of Google Drive clients for LinuxFull list of Google Drive clients for Linux
    although there is no official google drive client for linux, you can still browse your google drive files in file manger if you use a gnome-based desktop, thanks to the built-in files application.
  • Google Drive will not limit the amount of storage for StudentsGoogle Drive will not limit the amount of storage for Students
    google has just announced an extremely attractive information for students, which is that they will free all google drive for this object along with unlimited storage.
  • Will Google Drive back up photos and videos instead of Google+?Will Google Drive back up photos and videos instead of Google+?
    a few days ago google updated the drive app on android with convenient drag and drop, but that's not all. the hidden code inside the app's installation file also reveals that drive in the future will have the ability to backup photos and videos on your phone.
  • How to get 1TB of Google Drive capacity for freeHow to get 1TB of Google Drive capacity for free
    to receive an additional 1tb from google drive, users will join the donate for local guides program, a new feature that is additionally upgraded on google maps.
  • How to assign a task in Google DriveHow to assign a task in Google Drive
    when collaborating on files in google drive (docs, sheets and slides), it's easy to lose control over who is active on specific parts of the project. with google drive, you can assign tasks to collaborators on your team.
  • How to fix errors do not upload files to Google DriveHow to fix errors do not upload files to Google Drive
    google drive is definitely a reliable backup and sync solution with a range of handy features that make user work easier. however, google drive often has problems downloading files like upload speed is very slow or the file cannot be uploaded.