From 3341bddfcaf0bb2d20ca078b6c56e0899952798f Mon Sep 17 00:00:00 2001 From: Mort Yao Date: Tue, 23 Oct 2012 21:47:51 +0200 Subject: [PATCH] fix #17: percent-encoding Unicode URLs on Google+ --- you_get/downloader/googleplus.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/you_get/downloader/googleplus.py b/you_get/downloader/googleplus.py index d3a601a1af..d2f10369a4 100644 --- a/you_get/downloader/googleplus.py +++ b/you_get/downloader/googleplus.py @@ -5,6 +5,9 @@ from ..common import * def googleplus_download(url, output_dir = '.', merge = True, info_only = False): + # Percent-encoding Unicode URL + url = parse.quote(url, safe = ':/') + html = get_html(url) html = parse.unquote(html).replace('\/', '/')