Python Forum
download file from google drive ..
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
download file from google drive ..
#1
hello all ....
im trying to download a file from a direct link ( google drive ) ...
this is my function ..

command = raw_input()
linux = os.getenv("HOME")

def downloadfile():
    
    if os.path.isfile(linux + "/plink.exe"):
        pass
    else:
        urllib.urlretrieve(command, str(linux) + '/plink.exe')
it will take the link from command vir ... but i need to download it without writing the filename !! i mean i need it to do it auto ... how i can do this in python ??
this is my link : https://drive.google.com/uc?export=downl...-jD8xXvK3m
Reply


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

Possibly Related Threads…
Thread Author Replies Views Last Post
  download a file from a URL JayManPython 8 5,128 Dec-24-2024, 08:47 AM
Last Post: Penelope58
  FTP Download of Last File jland47 4 2,271 Mar-16-2024, 09:15 AM
Last Post: Pedroski55
Question How to get a removable disc type in drive Daring_T 12 5,413 Feb-11-2024, 08:55 AM
Last Post: Gribouillis
  Create dual folder on different path/drive based on the date agmoraojr 2 1,487 Jan-21-2024, 10:02 AM
Last Post: snippsat
  open python files in other drive akbarza 1 1,608 Aug-24-2023, 01:23 PM
Last Post: deanhystad
  Integrating Google Drive in App Lahearle 0 1,148 Jul-19-2023, 05:51 PM
Last Post: Lahearle
  code to send attachments contained on the drive. stefanoste78 1 1,731 Oct-12-2022, 02:16 AM
Last Post: Larz60+
  access is denied error 5 for network drive mapping ? ahmedbarbary 2 3,029 Aug-17-2022, 10:09 PM
Last Post: ahmedbarbary
  Cant Access D: Drive kucingkembar 4 2,879 Jul-28-2022, 04:53 PM
Last Post: kucingkembar
  Deploy Python to Cloud and save output to Google Drive chandrabr80 2 2,559 Jan-25-2022, 06:56 AM
Last Post: ndc85430

Forum Jump:

User Panel Messages

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