Python Forum
download file from google drive ..
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
download file from google drive ..
#2
import os
import urllib.request

linux = os.getenv("HOME")
outfile = linux  + "/Downloads/plink.exe"
 
DLFile = urllib.request.urlopen("https://drive.google.com/uc?export=download&id=19LJ6Otr9p_stY5MLeEfRnA-jD8xXvK3m")
with open(outfile,'wb') as out:
    out.write(DLFile.read())
Reply


Messages In This Thread
download file from google drive .. - by evilcode1 - Sep-19-2018, 09:17 AM
RE: download file from google drive .. - by Axel_Erfurt - Sep-19-2018, 09:40 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  FTP Download of Last File jland47 4 558 Mar-16-2024, 09:15 AM
Last Post: Pedroski55
Question How to get a removable disc type in drive Daring_T 12 1,633 Feb-11-2024, 08:55 AM
Last Post: Gribouillis
  open python files in other drive akbarza 1 801 Aug-24-2023, 01:23 PM
Last Post: deanhystad
  Integrating Google Drive in App Lahearle 0 536 Jul-19-2023, 05:51 PM
Last Post: Lahearle
  download a file from a URL JayManPython 7 1,544 Jun-28-2023, 07:52 AM
Last Post: JayManPython
  code to send attachments contained on the drive. stefanoste78 1 965 Oct-12-2022, 02:16 AM
Last Post: Larz60+
  access is denied error 5 for network drive mapping ? ahmedbarbary 2 1,908 Aug-17-2022, 10:09 PM
Last Post: ahmedbarbary
  Cant Access D: Drive kucingkembar 4 1,483 Jul-28-2022, 04:53 PM
Last Post: kucingkembar
  Deploy Python to Cloud and save output to Google Drive chandrabr80 2 1,676 Jan-25-2022, 06:56 AM
Last Post: ndc85430
  Calling exe on network drive GrahamL 4 2,730 Jan-21-2022, 12:01 PM
Last Post: GrahamL

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020