pydrive.drive import GoogleDrive pydrive.auth import GoogleAuth # Listdirni ishlatish uchun) import os # Quyida kod autentifikatsiyani amalga oshiradi # kodning bir qismi gauth = GoogleAuth) # Lokal veb-server yaratadi va avtomatik # autentifikatsiyani boshqaradi. gauth.LocalWebserverAuth) drive = GoogleDrive) # ushbu o'zgaruvchining qiymatini o'zgartiring # direktoriya yo'li absolitu yo'li bilan = r"C:\Games\Battlefield" # o'zgaruvchan fikr barcha fayllarni / jildni # x uchun kerakli direktoriya os.dirlist: f = drive.CreateFile{'title': x} f.SetContentFile{'pathos.join.path, x)) f.Upload #
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence