<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: mohammed hossein mazandaranian</title>
    <description>The latest articles on DEV Community by mohammed hossein mazandaranian (@modos).</description>
    <link>https://dev.to/modos</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F666710%2Fa5482418-11fd-47f5-937a-4e20e5878b9f.jpeg</url>
      <title>DEV Community: mohammed hossein mazandaranian</title>
      <link>https://dev.to/modos</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/modos"/>
    <language>en</language>
    <item>
      <title>Remote Upload in Google Drive</title>
      <dc:creator>mohammed hossein mazandaranian</dc:creator>
      <pubDate>Tue, 03 Aug 2021 17:34:32 +0000</pubDate>
      <link>https://dev.to/modos/remote-upload-in-google-drive-e3j</link>
      <guid>https://dev.to/modos/remote-upload-in-google-drive-e3j</guid>
      <description>&lt;p&gt;This tutorial also has been written in Persian language:&lt;br&gt;
&lt;a href="https://vrgl.ir/8Lghf" rel="noopener noreferrer"&gt;https://vrgl.ir/8Lghf&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Remote upload enables you to upload files and programs from any URL to your cloud.&lt;br&gt;
Hopefully we have this feature in Google Drive, but Google Drive doesn't provide this directly to us and we must use Google Colab to achieve it.by the way i made video for this tutorial, you can watch it if you wish.&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/WOCfEB0GDzc"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;ok let's start it.&lt;br&gt;
first things first sign into &lt;a href="https://colab.research.google.com/" rel="noopener noreferrer"&gt;google colab&lt;/a&gt; (same as gmail). create a new notebook, now we must mount out google drive in colab, so write this code and run it:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;from google.colab import drive&lt;br&gt;
drive.mount('/content/drive')&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;when you run above code, it gives you a link, click on it and give it access to your account, copy the api code and paste it in the field then hit enter.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffybv5166xpy82ss62lo1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffybv5166xpy82ss62lo1.png" alt="Remote upload in google drive"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;now create new field and write this code:&lt;br&gt;
&lt;code&gt;!wget -P /content/drive/MyDrive/newFolder/&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;the address in front of -P is path you want your file saved there, so you can change whatever after /MyDrive/ path.&lt;/p&gt;

&lt;p&gt;now in front of the code, write your file's url you want to download, here i want to download a mp3 file but you can download pdfs, videos and etc...&lt;br&gt;
&lt;code&gt;!wget -P /content/drive/MyDrive/newFolder/ https://www.bensound.com/bensound-music/bensound-hey.mp3&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;now run it, you can see the result:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fje33khy3qja6kr0tikr8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fje33khy3qja6kr0tikr8.png" alt="Remote upload in google drive"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;now if you go to your google drive, you can see that your file is downloaded.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ft0t9y4gbzb5o1tvpw98j.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ft0t9y4gbzb5o1tvpw98j.png" alt="Remote upload in google drive"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>tutorial</category>
    </item>
    <item>
      <title>How to download google drive files with direct link?</title>
      <dc:creator>mohammed hossein mazandaranian</dc:creator>
      <pubDate>Sun, 18 Jul 2021 20:03:52 +0000</pubDate>
      <link>https://dev.to/modos/how-to-download-google-drive-files-with-direct-link-4h34</link>
      <guid>https://dev.to/modos/how-to-download-google-drive-files-with-direct-link-4h34</guid>
      <description>&lt;p&gt;Google drive give us 15 gigabyte free space per account to upload and share our files. of course we can create another account and yes! another free 15 gigabyte. what if we can use it as of a free download host?&lt;br&gt;
well fortunately we can do that. we can generate direct download link of our files, create a streaming app like Netflix or Spotify with our uploaded files on google drive and in this post, we're gonna learn how to do it.&lt;/p&gt;

&lt;p&gt;first things first, upload a file on your drive if you have nothing already, then right-click on it and select "Get Link".&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--jYdy6EQm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c355hu3aqho6hp5wjvr6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--jYdy6EQm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c355hu3aqho6hp5wjvr6.png" alt="How to download google drive files with direct link?"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;now change the "Restricted" to "Anyone with the link". now a link generated for you so you can share the file with anyone with that.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--O1tQT0Er--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m6m96bkwzvguqxjw258h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--O1tQT0Er--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m6m96bkwzvguqxjw258h.png" alt="Google drive direct link generator"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;now if you open that link, you see file details and download it:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--5H7XYr8R--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c0f5jzx3tggwxvtmhxh9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--5H7XYr8R--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c0f5jzx3tggwxvtmhxh9.png" alt="Google drive direct link generator"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;but this is not a direct link, there is two way to convert this link to a direct download link:&lt;/p&gt;
&lt;h3&gt;
  
  
  Simple way
&lt;/h3&gt;

&lt;p&gt;using a magic online tools, watch this video:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://youtu.be/7Fh40jVId9s"&gt;Free unlimited host for your website and apps | google drive direct download link&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/7Fh40jVId9s"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;h3&gt;
  
  
  Geeky way
&lt;/h3&gt;

&lt;p&gt;copy the file id in shared link, for example:&lt;/p&gt;

&lt;p&gt;drive.google.com/file/d/&lt;strong&gt;1YNZp0m3jGaaqjtw2jvC6qD7k5eGdh_RZ&lt;/strong&gt;/view?usp=sharing&lt;/p&gt;

&lt;p&gt;file id of above link is :&lt;br&gt;
&lt;strong&gt;1YNZp0m3jGaaqjtw2jvC6qD7k5eGdh_RZ&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;now put it in the end of this link:&lt;/p&gt;

&lt;p&gt;drive.google.com/uc?export=download&amp;amp;id=&lt;strong&gt;1YNZp0m3jGaaqjtw2jvC6qD7k5eGdh_RZ&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;now if you open the link about, this file will be downloaded directly.&lt;/p&gt;

</description>
      <category>tutorial</category>
      <category>googledrive</category>
    </item>
  </channel>
</rss>
