Где я могу установить поведение ключа Caps Lock?

Вы можете использовать стороннюю службу, которая сделает все это за вас. Grabz Это один из примеров.

import GrabzItClient

#Create the GrabzItClient class
#Replace "APPLICATION KEY", "APPLICATION SECRET" with the values from your account!
grabzIt = GrabzItClient.GrabzItClient("APPLICATION KEY", "APPLICATION SECRET")
#Take the picture the method will return the unique identifier assigned to this task
id = grabzIt.TakePicture("http://www.google.com", "http://www.example.com/GrabzItHandler.py")

Затем вы можете загрузить изображение и сохранить его там, где хотите.

#Wait for a while

result = grabzIt.GetPicture(id)

if result != None:
    #Ensure that the application has the correct rights for this directory.
    fo = open("images" + os.sep + filename, "wb")
    fo.write(result)
    fo.close()

Вы можете найти больше информация в нем GrabzIt .

1
задан 17 April 2014 в 03:06

0 ответов

Другие вопросы по тегам:

Похожие вопросы: