Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: utf8 -*-
- from darth import *
- # album_id = 197032605 # .art
- album_id = 197002724 # добавь
- upload_file = 'http://cs619729.vk.me/v619729864/3f17/bs0ex1ctEZg.jpg'
- # upload_file = 'http://cs14101.vk.me/c540102/v540102390/1cbf9/W2Ma-Rs0ixg.jpg' # добавь
- u = vk.api('photos.getUploadServer', {'album_id': album_id})['upload_url']
- while 1:
- info = vk.upload(u, {'photo': upload_file})
- info['album_id'] = info.pop('aid')
- vk.api('photos.save', info)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement