@download_tool('urllib2')
def urllib2_download(client, download_url, filename, resuming=False):
	assert not resuming
	print 'Downloading', download_url, 'to', filename, '...'
	request = urllib2.Request(download_url, headers={'Cookie': 'gdriveid='+client.get_gdriveid()})
	response = urllib2.urlopen(request)
	import shutil
	with open(filename, 'wb') as output:
		shutil.copyfileobj(response, output)
Adds / removes the current user in the `__liked_by` property of the given document.
dataset/ETHPy150Open iambus/xunlei-lixian/lixian_download_tools.py/urllib2_download--crossover with--dataset/ETHPy150Open frappe/frappe/frappe/desk/like.py/toggle_like