Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #-*-coding:u8-*-
- from vklib import *
- from account import *
- vk=VKClient(delay_time=.5)
- vk.login(username, password)
- oid=-35184195
- my_album=200877233
- offset=0
- count=1000
- while 1:
- r = vk.api('photos.get', rev=1, owner_id=oid, album_id='wall', offset=offset, count=count)
- print '%s/%s' % (offset, r['count'])
- for it in r['items']:
- photo_id = vk.api('photos.copy', owner_id=oid, photo_id=it['id'])
- vk.api('photos.move', target_album_id=my_album, photo_id=photo_id)
- offset += count
- if offset >= r['count']:
- break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement