https://vk.com/wall-185434489_738132?z=photo-185434489_457345154%2Fwall-185434489_738132 -- photo ( owner_id: -185434489, photo id: 457345154)
https://vk.com/im?sel=253206460&w=wall-151130550_4298586%2F098513c657c2d9a85f -- post ( owner_id: -151130550, post id: 4298586 )
if 'wall' in task['url']:
parsed = urlparse.urlparse(task['url'])
if 'w' in parse_qs(parsed.query):
p_url = parse_qs(parsed.query)['w'][0].replace('wall', '').split('_')
else:
p_url = parsed.path.replace('wall', '').split('_')
info['post_id'] = p_url[1]
info['owner_id'] = p_url[0]