from grab import Grab
g = Grab()
id_groups = '50630084'
id_albums = '180763539'
g.go('https://api.vk.com/method/photos.get?owner_id=-'+id_groups+'&album_id='+id_albums+'&rev=1&extended=0&count=10')
http = (g.rex_text('"src_big":"([^"]+)","src_small"'))
result = str(http)
src = (result.replace('\\', ''))
file_1 = open("file.txt", "w")
file_1.write(src)
file_1.close()