2014-03-04 49 views
1

我已經上傳到谷歌驅動器和Dropbox(公共文件夾)的圖像不加載爲什麼當我訪問谷歌驅動器的公共網址給錯誤說(403。這是一個錯誤直接鏈接到谷歌驅動器圖像不工作[在CodeSkulptor]

您的客戶端無權從該服務器獲取網址/ U7NFy4SAHqDw6I3-Yd11AG2fi5QaCiIsn62wqOJO0gPRO68G5yfGurFiVm75HezqRtmrwlE33lxRyTF6(客戶端IP地址:103.21.166.13)。

ACL拒絕這就是我們所知道的)

這是我的codeskulptor代碼。

import simplegui 

message = "Welcome!" 

# Handler for mouse click 

image = simplegui.load_image('https://drive.google.com/file/d/0Bworipp9D5BbQ0t1aVE2NDlsaXc/edit?usp=sharing') 
# Handler to draw on canvas 
def draw(canvas): 
    canvas.draw_image(image, (596, 25), (1192, 50), (100, 100), (128, 128)) 
    print image.get_width(); 
    print image.get_height(); 
# Create a frame and assign callbacks to event handlers 
frame = simplegui.create_frame("Home", 300, 200) 

frame.set_draw_handler(draw) 

# Start the frame animation 
frame.start() 
+0

當我在代碼中嘗試URL時,我收到一個302響應,將我重定向到https://docs.google.com/file/d/0Bworipp9D5BbQ0t1aVE2NDlsaXc/edit?usp=sharing,然後下載正常。 (當然,這是一個網頁,而不是一個圖像,所以它不會在你的代碼中工作。)這在Google Drive的一面。您要下載的Dropbox網址是什麼? – smarx

回答

相關問題